||Top Ten New Things You Can Do with NIO|
|Subject:||non-blocking and select|
Response to: non-blocking and select
Re: why channels must be non-blocking to be used with a Selector. Here's a direct quote from a member of the NIO Expert Group:
"This was explicitly discussed, and we were of two minds. The winning idea in the end was that allowing use of Selector with blocking sockets was error-prone -- reusing a big body of blocking I/O code with Selector is likely to break subtly somehow. I'd be hard pressed to say exactly how, but that was our best judgement."