On Jan 25, 2008 2:59 PM, Alan Bateman <[EMAIL PROTECTED]> wrote:

> > I not agree, reading the code, idle set is used when setInterestOps(0)
> > is called.
> > I'm not sure that case is not frequent.

> I've only observed it on a few occasions.

Hmm? I thought a boilerplate selection loop looks more or less like this:

while(true) {
 select();
 for k in selectedKeys: {
   k.setInterestOps(0);    <===========
   pool.execute({
     newInterest = handle(k);
     k.interestOps(newInterest);
   });
 }
}

Matthias

Reply via email to