From: 7stud -- Date: 2011-03-18T08:00:17+09:00 Subject: Re: TCPSocket: how to realize that the other endpoint has closed the connection? After the server closes its side of the socket, there must be some amount of time after which if the client tries to send data over the socket, the client will receive a broken pipe error. Is that 2.3 years? Or, closer to five minutes? Here is a very technical diagram that includes what happens when one side closes the socket: http://www.ssfnet.org/Exchange/tcp/tcpTutorialNotes.html#ST As far as I can tell, if the client sleep()'s long enough after the server closes the socket, the client will receive a broken pipe error -- Posted via http://www.ruby-forum.com/.