From: 7stud -- Date: 2011-05-14T04:03:22+09:00 Subject: Re: Ruby socket does not get reply Roger Pack wrote in post #998583: >> puts socket.read > > This call (read) blocks until the other end of the connection closes it. > -r Good one. From IO#read docs: === ios.read([length [, buffer]]) → string, buffer, or nil If length is omitted or is nil, it reads until EOF... === When the server closes the socket, ruby sends an EOF signal to the other side. -- Posted via http://www.ruby-forum.com/.