[Bug 349870] proxy servlet protect continuation against fast failing exchanges
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@3401 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
parent
bb6038b716
commit
2f7eb54e0f
|
@ -485,7 +485,13 @@ public class ProxyServlet implements Servlet
|
|||
protected void onConnectionFailed(Throwable ex)
|
||||
{
|
||||
handleOnConnectionFailed(ex,request,response);
|
||||
continuation.complete();
|
||||
|
||||
// it is possible this might trigger before the
|
||||
// continuation.suspend()
|
||||
if (!continuation.isInitial())
|
||||
{
|
||||
continuation.complete();
|
||||
}
|
||||
}
|
||||
|
||||
protected void onException(Throwable ex)
|
||||
|
@ -496,7 +502,13 @@ public class ProxyServlet implements Servlet
|
|||
return;
|
||||
}
|
||||
handleOnException(ex,request,response);
|
||||
continuation.complete();
|
||||
|
||||
// it is possible this might trigger before the
|
||||
// continuation.suspend()
|
||||
if (!continuation.isInitial())
|
||||
{
|
||||
continuation.complete();
|
||||
}
|
||||
}
|
||||
|
||||
protected void onExpire()
|
||||
|
|
Loading…
Reference in New Issue