hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ortwin Gl├╝ck <...@odi.ch>
Subject Re: Controlling "acceptance" of connections
Date Wed, 03 Feb 2010 10:01:15 GMT


On 03.02.2010 10:58, Oleg Kalnichevski wrote:
> I think NIO should work quite similarly. A selectable channel can be
> marked as OP_ACCEPT ready, but that does not mean the connection
> listener must accept that connection or accept it immediately.  

In theory yes. But you get the ACCEPT ready *once* only. So if you ignore it,
you forget that a channel was ready and you can end up never accepting it. So
not registering for OP_ACCEPT in the first place when you can't handle new
sockets is a must.

Odi

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message