From: Massimiliano Mirra Date: 2001-12-26T09:15:09+09:00 Subject: [ruby-talk:29425] Re: Surprise (?) with sockets On Wed, Dec 26, 2001 at 05:20:58AM +0900, Thomas Hurst wrote: > Looks like it's waiting most of the time. I'd suggest setting > TCP_NOWAIT on the socket, otherwise it's probably hanging around at the > end of each operation for something else to fill the packets with before > sending. > You saved my mental sanity. Not too bad for a Xmas gift. ;-) man 7 tcp and socket.setsockopt(Socket::SOL_TCP, Socket::TCP_NODELAY, 1) did the trick. Thanks! Massimiliano