471251 - Improved debugging on async timeout
This commit is contained in:
parent
ca8ba1c080
commit
75f74ff76f
|
@ -23,6 +23,7 @@ import java.net.InetSocketAddress;
|
|||
import java.nio.ByteBuffer;
|
||||
import java.nio.channels.ClosedChannelException;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.TimeoutException;
|
||||
import java.util.concurrent.atomic.AtomicBoolean;
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
|
||||
|
@ -305,7 +306,7 @@ public class HttpChannel implements Runnable, HttpOutput.Interceptor
|
|||
|
||||
Throwable ex=_state.getAsyncContextEvent().getThrowable();
|
||||
String reason="Async Timeout";
|
||||
if (ex!=null)
|
||||
if (ex!=null && !(ex instanceof TimeoutException))
|
||||
{
|
||||
reason="Async Exception";
|
||||
_request.setAttribute(RequestDispatcher.ERROR_EXCEPTION,ex);
|
||||
|
|
|
@ -458,7 +458,6 @@ public class HttpChannelState
|
|||
if (_state==State.ASYNC_WAIT)
|
||||
{
|
||||
_state=State.ASYNC_WOKEN;
|
||||
_event.setThrowable(new TimeoutException("async"));
|
||||
dispatch=true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue