From: nobu.nokada@... Date: 2002-07-16T13:44:54+09:00 Subject: Re: non blocking sockets in Ruby? Hi, At Tue, 16 Jul 2002 09:48:34 +0900, Serg Koren wrote: > Is there a non-blocking socket call I can use in Ruby to see if there > is data waiting on it? You don't need non-blocking mode. select([socket]) # wait until data received select([socket], nil, nil, 0) # poll if data received If you set a socket to non-blocking mode, EWOULDBLOCK can occur but current ruby implementation looses the data received before the error. -- Nobu Nakada