From: mrchameleon@... (Chris Reay) Date: 2004-06-13T12:23:40+09:00 Subject: Re: oddities with select (do we need .to_bool?) Ben Giddings wrote in message news:<40C9E7F5.20607@infofiend.com>... > Gennady wrote: > > Ben Giddings wrote: > > > >> I'm going to assume you really misunderstand and aren't trolling, > >> because even if you are trolling, maybe this explanation will come in > >> useful for someone else. > >> I replied to this a moment ago, and then did the ad hoc experiment that I should have done before opening my virtual mouth earlier - sorry 'bout that. I tested this: require "socket" svr = TCPServer.new("localhost", 4567) sock = svr.accept printf "Accepted conn\n" while true if select([sock], [], [], 3.0) printf("%s\n", sock.recv(256)) end end I sent some "hello world" messages to it from a TCPSocket. It works perfectly. Sorry to appear tardy, tedious or trollish; but what gives?