From: Clifford Heath Date: 2003-04-04T10:57:06+09:00 Subject: Re: Clarification: read/write slow, and TCPSocket and sys{read,write} I suspect you're being killed by the latency in the TCP protocol layer. If you write to a socket, most implementations won't send your packet immediately, because they guess you will write more instead of reading next. After say 10ms, they give up waiting for more and send what you wrote. This is known as the Nagle algorithm, you should be disable it using setsockopt TCP_NODELAY (I haven't done this in Ruby). Clifford.