From: Ben Giddings Date: 2004-06-09T08:15:50+09:00 Subject: oddities with select I'm trying to use Ruby to talk to an network application, and noticed something odd. Using ethereal, I can see that the server is returning a newline to the client, however my Ruby code, calling select([socket], [], [], 0.1) repeatedly for 5 seconds never seems to know that there's data to be read. I've tried to make sure the socket is non-blocking with: @sock.fcntl(Fcntl::F_SETFL, Fcntl::O_NONBLOCK) But that seems to have no effect. Is there something I'm missing? I haven't tried the same code in another language to see if the problem may be there. At the moment though, this seems broken. Any ideas? Ben