Connection changes to connecting to failed in transport

After the server side consume data from the producer its connection changes to connecting then to failed, can someone explain what is happening please?