dev@grizzly.java.net

SelectorThreadKeyHandler.resetExpiration()

From: gustav trede <gustav.trede_at_gmail.com>
Date: Sun, 18 Jan 2009 03:28:55 +0100

Salut,

A question regarding

    /**
     * Reset the expiration time
     */
SelectorThreadKeyHandler.resetExpiration() {
disableOptimization = true;
}

that permanent disables the use of idlecheck interval timer .

the name of the method implies that the correct logic should be
nextKeysExpiration = 0;

if others confirm this , i will create an issue and patch it.

also , it seems that this method is called from other threads, hence the
nextKeysExpiration should be volatile.


-- 
your servant
 gustav trede
coding is art - not only something that  bring food on the table,
everybody should be able to feel proud about their code,
that they have performed their best considering the given conditions.