Improved failure handling of AsyncProxyServlet.

This commit is contained in:
Simone Bordet 2014-07-25 10:53:39 +02:00
parent f8bf40107a
commit b0d607a56d
1 changed files with 2 additions and 3 deletions

View File

@ -85,7 +85,7 @@ public class AsyncProxyServlet extends ProxyServlet
catch (Throwable x)
{
callback.failed(x);
onResponseFailure(request, response, proxyResponse, x);
proxyResponse.abort(x);
}
}
@ -279,8 +279,7 @@ public class AsyncProxyServlet extends ProxyServlet
@Override
public void onError(Throwable failure)
{
HttpServletResponse response = (HttpServletResponse)request.getAsyncContext().getResponse();
onResponseFailure(request, response, proxyResponse, failure);
proxyResponse.abort(failure);
}
}