Cev error stops coming after some time the server has discon

Hi Everyone :astonished: ,

      When the server disconnects , wip_cev_error comes , and according to this error event I m trying to connect to TCP , but after some time this error does not come .... also some times the server is disconnected but it shows that it is connected to the server & sends data , but since the server is not connected the data is never reached ... Can anyone answer me how to proceed (in wat order ) perfectly with TCP so that no data is missed when connectivity is there . 

kindly reply fast .