nonblocking TCPSocket in multithread software.



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


.



Relevant Pages

  • Re: Calling on a macro within a macro!
    ... Sorry just a quick question on this - does it matter where the other 5 ... macros are stored? ... Prev by Date: ...
    (microsoft.public.excel)
  • Re: Menus in Access
    ... Thnx! ... Thanx for informing me so I didn't have to find out myself. ... it doesn't matter that I can't do it. ... Prev by Date: ...
    (microsoft.public.access.modulesdaovba)
  • Re: OT Monday link
    ... No matter where you are or what you are doing ... I'm here wishing you the very worst. ... CBIC, circa 2005 ... Prev by Date: ...
    (microsoft.public.cert.exam.mcse)
  • WORD XP Tracking
    ... I want to clean up the corrections but leave the Change Line on ... strike throughs, etc. So you are left with just the Change Lines. ... help with this matter. ... Prev by Date: ...
    (microsoft.public.word.docmanagement)
  • Re: JScrollPane - strange repainting problem?
    ... a matter of when you make the user wait. ... Canadian Mind Products, Roedy Green. ... http://mindprod.com Again taking new Java programming contracts. ... Prev by Date: ...
    (comp.lang.java.gui)