On 03.02.2010 10:05, Asankha C. Perera wrote:
> However, the NIO reactor will process events over threads that are
> different from the worker threads processing the request. 

I see what you mean... Once the reactor gets an OP_ACCEPT you have no way to
reject that event again, so the you will effectively always accept a new
connection. But since that op is the only one of ServerSocketChannel, the
reactor should simply not select on the channel when the number of concurrent
connections is reached (unregister the channel from the selector). This way the
connections will queue in the OS and will be subject to the backlog limit. 
Right?

Ortwin

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to