Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Wilkins2012-01-09 00:16:30 +0000
committerGreg Wilkins2012-01-09 00:16:30 +0000
commit90e9358ea5f62b78f1b11fe607b333b500373cb3 (patch)
treec6774787d69a7371e0d46fa4aa22e6a4ae281977
parent588b068c06235c23a391a7f17f8857eaccf09ba3 (diff)
downloadorg.eclipse.jetty.project-90e9358ea5f62b78f1b11fe607b333b500373cb3.tar.gz
org.eclipse.jetty.project-90e9358ea5f62b78f1b11fe607b333b500373cb3.tar.xz
org.eclipse.jetty.project-90e9358ea5f62b78f1b11fe607b333b500373cb3.zip
367716 simplified maxIdleTime logic
-rw-r--r--jetty-server/src/main/java/org/eclipse/jetty/server/AsyncContinuation.java3
-rw-r--r--jetty-server/src/main/java/org/eclipse/jetty/server/AsyncHttpConnection.java3
2 files changed, 2 insertions, 4 deletions
diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/AsyncContinuation.java b/jetty-server/src/main/java/org/eclipse/jetty/server/AsyncContinuation.java
index f9846745e6..9ed4119c93 100644
--- a/jetty-server/src/main/java/org/eclipse/jetty/server/AsyncContinuation.java
+++ b/jetty-server/src/main/java/org/eclipse/jetty/server/AsyncContinuation.java
@@ -185,9 +185,6 @@ public class AsyncContinuation implements AsyncContext, Continuation
}
/* ------------------------------------------------------------ */
- /* (non-Javadoc)
- * @see javax.servlet.ServletRequest#isSuspended()
- */
public boolean isSuspending()
{
synchronized(this)
diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/AsyncHttpConnection.java b/jetty-server/src/main/java/org/eclipse/jetty/server/AsyncHttpConnection.java
index 0f68b4ed6b..59e66626e6 100644
--- a/jetty-server/src/main/java/org/eclipse/jetty/server/AsyncHttpConnection.java
+++ b/jetty-server/src/main/java/org/eclipse/jetty/server/AsyncHttpConnection.java
@@ -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);
}

Back to the top