From: Aristarkh A Zagorodnikov Date: 2001-07-25T00:06:11+09:00 Subject: [ruby-talk:18436] Re: nonblocking socket error under windows? ----- Original Message ----- From: "Ralf Canis" Newsgroups: comp.lang.ruby To: "ruby-talk ML" ; 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