From: yannick Date: 2004-03-26T21:48:57+09:00 Subject: Re: non blocking read and thread Thanks you for your answer, but that's not really what I meant. I know than by closing the socket you unblock it anyway, but I would like to know why there is a difference between reading a non blocking IO in the main thread and reading it in another thread. Yannick -----Original Message----- From: ts [mailto:decoux@moulon.inra.fr] Sent: Friday, March 26, 2004 8:52 PM To: ruby-talk ML Cc: ruby-talk@ruby-lang.org Subject: Re: non blocking read and thread >>>>> "y" == yannick writes: y> Thread.new do y> sleep 2 y> client = TCPSocket.new('localhost', '1999') y> puts "send a message" y> client.puts "message" client.close y> end Guy Decoux