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.
> <tries to remember how to use setsockopt()>

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