dev@grizzly.java.net

SelectorThreadKeyHandler.resetExpiration() ?

From: gustav trede <gustav.trede_at_gmail.com>
Date: Tue, 27 Jan 2009 19:13:08 +0100

hello Oleksiys,

I want to understand the purpose of the reset call:

+ ((SelectorThreadKeyHandler) selectorHandler.
getSelectionKeyHandler()).resetExpiration();
            key.attach(response.getResponseAttachment());


in trunk that resetExpiration() permanently disables the use of expiration
check interval,
so the check is performed on every select.

in branch i changed it to reset the nextexpirationchecktime to 0,
hence the next select will perform idle check, and after that
its back to the interval delay per check.

btw. comet is using the main grizzly selector logic now,
hence i had to enforce idlecheck once per second to keep the precision that
comet allows for.

-- 
regards
 gustav trede