On Wed, 2010-02-03 at 11:04 +0100, Ortwin Glück wrote: > Answering myself again :-) > > > 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. > > I may be wrong here, and you get ACCEPT ready over and over again until you > actually accept. That's equally bad because you end up with a busy wait. >
I guess it should be possible to turn off interest in OP_ACCEPT notifications on that channel and turn it on again once the server is ready to accept more connections. Control logic might get quite complex, though. Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@hc.apache.org For additional commands, e-mail: dev-h...@hc.apache.org