Bugs item #1184, was opened at 2004-12-09 13:34 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=1184&group_id=426 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Tim Smith (tsmith) Assigned to: Nobody (None) Summary: "Invalid Argument" for Windows Sockets Initial Comment: 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. require "socket" socket = TCPSocket.new "www.google.com", 80 socket.write "first write to the socket" sleep 1 socket.write "second write to the socket" ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=1184&group_id=426