> Lähettäjä: "christoph.heindl@gmail.com" <christoph.heindl@gmail.com>
> Aihe: Re: TCPSocket.new blocks other threads
>
> robert,
>
> i could not find any information in ruby-talk...
> :(
I'm trying this:
# test.rb
if $0 == __FILE__
require 'socket'
a = Thread.new do
0.upto 50_000 do |i|
puts i
end
end
a.join
b = Thread.new do
TCPSocket.new 'www.sourceforge.com', 80
end
b.join
end
There's no delay at any point. If I give a nonexistent address,
I get an exception report once the other thread is finished. This
is Ruby 1.8.1 i386-mswin32 on an early XP machine (no SP2) connecting
through cable.
> christoph
E