367716 simplified maxIdleTime logic

This commit is contained in:
Greg Wilkins 2012-01-09 11:16:30 +11:00
parent 588b068c06
commit 90e9358ea5
2 changed files with 2 additions and 4 deletions

View File

@ -185,9 +185,6 @@ public class AsyncContinuation implements AsyncContext, Continuation
}
/* ------------------------------------------------------------ */
/* (non-Javadoc)
* @see javax.servlet.ServletRequest#isSuspended()
*/
public boolean isSuspending()
{
synchronized(this)

View File

@ -146,7 +146,8 @@ public class AsyncHttpConnection extends AbstractHttpConnection implements Async
_generator.returnBuffers();
}
if (_request.getAsyncContinuation().isComplete() || _request.getAsyncContinuation().isInitial())
// reenable idle checking unless request is suspended
if(!_request.getAsyncContinuation().isAsyncStarted())
{
_asyncEndp.setCheckForIdle(true);
}