nonblocking TCPSocket in multithread software.
- From: Arto Pastinen <arto.pastinen@xxxxxxxxx>
- Date: Fri, 16 Dec 2005 18:43:47 +0900
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
.
- Follow-Ups:
- Re: nonblocking TCPSocket in multithread software.
- From: Yohanes Santoso
- Re: nonblocking TCPSocket in multithread software.
- From: Arto Pastinen
- Re: nonblocking TCPSocket in multithread software.
- Prev by Date: Re: Ruby tail recursion
- Next by Date: Re: LISP to Ruby translation
- Previous by thread: [ANN] scoped_require 0.0
- Next by thread: Re: nonblocking TCPSocket in multithread software.
- Index(es):
Relevant Pages
|