Hello,

In message "[ ruby-Bugs-1184 ] "Invalid Argument" for Windows Sockets"
    on Dec.10,2004 03:35:30, <noreply / rubyforge.org> wrote:
| With ruby 1.8.2 (2004-11-06) [i386-mswin32], the following code produces "in `write': Invalid argument" on the second write to the socket.  Removing the sleep statement, removing the first write, or shortening the string in the first write to "first write" prevents the error.  Not sure what's going on, but this doesn't seem like expected behavior.

You sent illegal HTTP message to Google, so Google disconnect
your connection.
# On other platform, second write will raise another exception
# (Errno::EPIPE, etc.).


Regards,
-- 
U.Nakamura <usa / garbagecollect.jp>