From: Ville Mattila Date: 2005-01-24T17:11:00+09:00 Subject: Re: TCPSocket.new blocks other threads "martinus" writes: > This is a serious problem! Try this code without an internet > connection: > > Thread.new { > sleep 1 > TCPSocket.new("xxx.nonexisting.xxx", 1234) > } > > loop { > puts "." > sleep 0.25 > } > > This should continuously print a ".", but after 1 second this blocks > Ruby completely. > Works ok with ruby -v ruby 1.8.2 (2005-01-23) [sparc-solaris2.8] and ruby -v ruby 1.8.2 (2004-07-29) [i386-mswin32] So this might be problem on your OS. - Ville