From: Ville Mattila Date: 2005-05-24T14:05:17+09:00 Subject: Re: UDP select()/recvfrom() delay under Windows? David Holroyd writes: > When I run my test code in ruby 1.8.2 (2004-12-25) [i386-mswin32], I > see, for example: > > > I notice that there is a gap of some several seconds between select() > completing, and recvfrom() completing -- I expected that, since select() > reports data can be read, recvfrom() should not block. Am I wrong? > > Also, I am fairly confident that there *is* data that could be read > immediately, as I can see packets arriving (in Ethereal, running on the > same machine as the above Ruby code). > > > Any help (even a reply that this is off-topic, and that I don't > understand socket programming) much appreciated. I think this will be fixed in 1.8.3 so you could try it. There is a 1.8.3rc1 available at www.ruby-lang.org. You have to compile it your self though. - Ville