Hi!

Why this blocks?

a = Thread.new do
  s = TCPSocket.new('localhost', 4343)
  s.nonblock = true
  p s.read # it block's here no matter what i do
end
a.join

.. and how to make it nonblock?

It works fine if i drive it in main thread.

Thnx: Artsi