From: Nathan Taylor Date: 2006-12-30T04:40:45+09:00 Subject: Re: how to properly format data when using TCPSocket.send() > See above where the client sends out a segment with the FIN bit set > before the response from the Apache server arrives. When I run this > code ruby just hangs. I suppose awaiting the HTTP response that will > never be sent up the stack. I guess a good question would be "does ruby's TCPSocket take advantage of a TCP half close and still received data after it sends a FIN advising the other side that it will not be sending any more data?" I have consulted the "TCP/IP Illustrated", but it is apparently a decision that is up to the application developer that does the implementation. Perhaps my understanding is skewed and this is even a deeper question. Does Ruby's Net::TCPSocket class use the underlying OS's TCP/IP stack? I think that it would, but I am not yet skilled in the Ruby Way, or it's underlying code. I am still consulting RFC 2822 so my next post should include more educated questions. - Nathan -- Posted via http://www.ruby-forum.com/.