Click here to Skip to main content
15,886,578 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
What happens if I make a server application using tcp protocol and then establish connection with a client application but the server crash and then the client send data. Will the data be lost or the system will continue trying to send it?
Posted

1 solution

'the system' ? no .. if the server crashes, the socket will (possibly after a timeout) be closed, at which stage the client should detect that the connection has been closed and take recovery action on its own. So, your client should, on recognising a disconnect, implement its own protocol for trying to re-establish the connection and re-send the data
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900