From: ts Date: 2003-03-19T19:21:39+09:00 Subject: Re: Problem with Non Blocking Socket Connections >>>>> "M" == Masuo Gates writes: M> socket = Socket.new(Socket::AF_INET, Socket::SOCK_STREAM, 0) M> socket.fcntl(Fcntl::F_SETFL, Fcntl::O_NONBLOCK) M> socket.connect(sockaddr_server) This is what do internally Socket#connect, i.e. the socket is put in non-blocking mode and ruby manage EAGAIN, EINPROGRESS, ... Guy Decoux