dev@grizzly.java.net

detection of failed onEvents and dead comethandlers to prevent mem leak.

From: gustav trede <gustav.trede_at_gmail.com>
Date: Wed, 24 Dec 2008 11:45:36 +0100

Salut,

I noticed that if there is at least one event per idletimeout we have a
buildup of the disconnected/failed comethandlers until VM has no more free
memory.

Fine , lets detect the failed onEvents in defaultnoficicationhandler and
remove those comethandlers.
problem is that neither printwriter or outputstream flush throws exception,
in the printwriter case the user must remember to do checkError() and then
throw an IOException, but that is not what people in general do..
for the outputstream case, i dont see any way to detect the failed io.

any suggestions to have a fail safe implementation for this problem ?


 gustav trede