Will TCP automatically close the socket in these cases

view story

http://stackoverflow.com – We are developing a network application on linux using C/S, recently we found that the write/read on some open and connected sockets may fail when there are large amount of UDP and TCP data conveying over the bandwith, it looks like the sockets are closed by some unknown reason. Here comes the questions, please tell me if the TCP will automatically close the sockets or not. Suppose that there are a sender and a receiver, the sender sends lots of data to the receiver via a TCP non-blocking socket. And suppose there are a lot traffic on the bandwith by the application itself and other applic (HowTos)