Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Wilkins2015-07-01 22:01:03 +0000
committerGreg Wilkins2015-07-01 22:01:03 +0000
commitca8ba1c080b0ff5ef4f8b88be9f884407b214173 (patch)
treefe35e80391914a51172cd0aea4008975fb38ab93
parent8d869bf88b2292e2c767d82c50d46e8519d1d090 (diff)
downloadorg.eclipse.jetty.project-ca8ba1c080b0ff5ef4f8b88be9f884407b214173.tar.gz
org.eclipse.jetty.project-ca8ba1c080b0ff5ef4f8b88be9f884407b214173.tar.xz
org.eclipse.jetty.project-ca8ba1c080b0ff5ef4f8b88be9f884407b214173.zip
471251 - Improved debugging on async timeout
-rw-r--r--jetty-server/src/main/java/org/eclipse/jetty/server/HttpChannelState.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/HttpChannelState.java b/jetty-server/src/main/java/org/eclipse/jetty/server/HttpChannelState.java
index ad4e31b703..9e03972eaf 100644
--- a/jetty-server/src/main/java/org/eclipse/jetty/server/HttpChannelState.java
+++ b/jetty-server/src/main/java/org/eclipse/jetty/server/HttpChannelState.java
@@ -21,6 +21,7 @@ package org.eclipse.jetty.server;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.TimeUnit;
+import java.util.concurrent.TimeoutException;
import javax.servlet.AsyncListener;
import javax.servlet.RequestDispatcher;
@@ -427,6 +428,9 @@ public class HttpChannelState
aListeners=_asyncListeners;
}
+ if (LOG.isDebugEnabled())
+ LOG.debug("Async timeout {}",this);
+
if (aListeners!=null)
{
for (AsyncListener listener : aListeners)
@@ -454,13 +458,18 @@ public class HttpChannelState
if (_state==State.ASYNC_WAIT)
{
_state=State.ASYNC_WOKEN;
+ _event.setThrowable(new TimeoutException("async"));
dispatch=true;
}
}
}
if (dispatch)
+ {
+ if (LOG.isDebugEnabled())
+ LOG.debug("Dispatch after async timeout {}",this);
scheduleDispatch();
+ }
}
public void complete()

Back to the top