A
Arto Pastinen
Hi!
Why this blocks?
a =3D Thread.new do
s =3D TCPSocket.new('localhost', 4343)
s.nonblock =3D 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
Why this blocks?
a =3D Thread.new do
s =3D TCPSocket.new('localhost', 4343)
s.nonblock =3D 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