From: Ammar Ali Date: 2010-10-28T19:07:59+09:00 Subject: Re: TCPServer bug? On Thu, Oct 28, 2010 at 11:24 AM, Robert Klemme wrote: > On Thu, Oct 28, 2010 at 10:12 AM, Yan Bernatsky wrote: >> I have an exception "Connection reset by peer" now and server continue >> to works for another clients. But client, who break the connection, >> can't connect to server again. > > That's most likely an issue in your client code. Hi Yan, If the client can reconnect after a few minutes (5 or so, depending on OS), then you might need to set the socket option SO_REUSEADDR using setsockopt before connecting. client_socket.setsockopt( Socket::SOL_SOCKET, Socket::SO_REUSEADDR, 1 ) HTH, Ammar