From: Jakub Travnik Date: 2001-11-28T11:30:16+09:00 Subject: [ruby-talk:26733] Re: TCP hang problem Ville Mattila wrote: > > "Harry Ohlsen" writes: > > >>Sorry, I should have said, this is under Linux 2.4.13, in case that makes >>a difference. >> > > There at least two serious select related bug which could cause your > problems. I have sent a patch to fix rb_thread_select timeout issue > > http://www.ruby-talk.com/cgi-bin/scat.rb/ruby/ruby-talk/25914 > > and Jakub Travnik has fix proposal for select issue in io.c > > http://www.ruby-talk.com/cgi-bin/scat.rb/ruby/ruby-talk/26370 > > - Ville > this bug occurs under following conditions: 1, more than one thread 2, you call select 3, some of IO objects in call to select have pending data in buffer and you wait for them to be readable then select will return all IO object that it was called with, even when no data is available on some. It seems unrelated to your problem. btw: I running http server with threading written in ruby (modified version of httpserv entry in raa) under ruby 1.6.2 (probably not significan), I didn't noticed any problems during about 5000 requests today from our subnet. Jakub Travnik jabber://jtra@jabber.com ICQ: 66770334 (deprecated)