From: Francis Cianfrocca Date: 2006-05-16T00:42:39+09:00 Subject: Re: Nonblocking socket-connect Well, it's ok then. I'm comfortable adding in the nonblocking functions as an extension in my asynchronous-IO framework. If you decide it's best to leave nonblocking i/o out of the core, then people will be able to get it if necessary through my "eventmachine" library. On 5/15/06, Yukihiro Matsumoto wrote: > Hi, > > In message "Re: Nonblocking socket-connect" > on Mon, 15 May 2006 20:20:12 +0900, "Francis Cianfrocca" writes: > > |In other words, if we call Socket#nonblocking(true), the behavior of > |Socket#connect would change to a pure nonblocking behavior. But it would not > |break any existing code, nor would it introduce of ugly new method names > |(connect_nonblocking, read_nonblocking, write_nonblocking). Calling > |Socket#nonblocking( false ) would revert to the original behavior. > > require 'io/nonblock' would do what you proposed. But I'm not > positive against making it built in, because non-blocking IO can cause > weird problems so easily under Ruby. I don't want to encourage using > them. Honestly, I want to remove io/nonblock if it's not too late. > > matz. > >