From: Dominic Rose Date: 2010-05-11T00:35:47+09:00 Subject: Re: IO select. Reconnect procedure. Maybe this will help. class TCPSocket def off? begin eof rescue Kernel.puts "#{__FILE__}:#{__LINE__} #{$!.inspect}" true end end end def loop until connection.off? ... end end -- Posted via http://www.ruby-forum.com/.