Jetty9 - Start counting for idleness when we register read interest.

Otherwise it was possible that the endPoint was created, upon creation
it started counting for idleness, after a while read interested was set
and the endPoint idle timed out before having the chance to read.
This commit is contained in:
Simone Bordet 2012-08-28 11:55:01 +02:00
parent 156f07d493
commit 7a1faf3c08
1 changed files with 9 additions and 8 deletions

View File

@ -150,6 +150,7 @@ public abstract class AbstractEndPoint implements EndPoint
@Override
public <C> void fillInterested(C context, Callback<C> callback) throws IllegalStateException
{
notIdle();
_fillInterest.register(context, callback);
}