From: Ben Schumacher Date: 2002-09-18T19:15:23+09:00 Subject: [BUG] Re: A Windows issue with Kernel#select... Hello- On Wed, 18 Sep 2002 nobu.nokada@softhome.net wrote: > Hi, > > At Tue, 17 Sep 2002 20:43:47 +0900, > Ben Schumacher wrote: > > Then I use Kernel#select to monitor the socket for new input: > > x = select([s], nil, nil, 30) > > puts x.inspect > > > > In *nix (FreeBSD) when there is data waiting on the socket, I get the > > results, namely an array with my socket: > > [[#], [], []] > > > > However, on Windows, I'm getting an empty array: > > [[], [], []] > > It sounds like the bug reported in [ruby-talk:40009]. If so, it > doesn't occur in 1.7 but hasn't been fixed in 1.6 yet. Just upgraded to 1.7.2 on my Windows box, and it looks like you're correct. Apparently, I left some information out of my previous email... the problem only manifested itself when the select was in a Thread. I suppose if this bug has already been reported, there is no reason to report again. Thanks for the information. bs.