From: Roger Pack Date: 2010-08-12T08:01:48+09:00 Subject: [ruby-core:31682] IO#gets hangs on socket Hi all. Saw this the other day: basically if two ruby sockets connect, and one ruby one socket does io.write "line" io.close and the other does io2.gets # this line here hangs *forever* even though the socket has been closed. Is this expected? A bug? Thanks. -r ref: http://stackoverflow.com/questions/61675/recovering-from-a-broken-tcp-socket-in-ruby-when-in-gets