----- Original Message ----- From: "Ralf Canis" <rc / duria.de> Newsgroups: comp.lang.ruby To: "ruby-talk ML" <ruby-talk / ruby-lang.org>; <undisclosed-recipients:> Sent: Tuesday, July 24, 2001 6:10 PM Subject: [ruby-talk:18430] nonblocking socket error under windows? > Hi, > > those few lines crash with > > No buffer space available; the socket cannot be connected - > "recvfrom(2)" (Errno::ENOBUFS) > > under Windows (1.6.4 install-shield version) but work fine with the Linux > version. > > Looks like a call to recv on a nonblocking socket WITHOUT any data to read > causes this "bug". > > - Anybody can confirm this? > - Does a method exist to check if there is anything in the > input queue without calling recv? (ok, I can catch this exception but > there has to be a better solution) There is select ;) the power of this function when building any network-related stuff always amazed me. Aristarkh A Zagorodnikov, Lead Programmer, W3D Group http://www.w3d.ru /// xm / w3d.ru /// ICQ UIN 36987938