Merged branch 'master' into 'jetty 9.1'.

This commit is contained in:
Simone Bordet 2013-07-23 18:44:45 +02:00
commit 7b4ebc270c
1 changed files with 5 additions and 3 deletions

View File

@ -317,9 +317,11 @@ public abstract class HttpSender implements AsyncContentProvider.Listener
if (result == null && notCommitted && request.getAbortCause() == null)
{
// Complete the response from here
exchange.responseComplete();
result = exchange.terminateResponse(failure);
LOG.debug("Failed response from request {}", exchange);
if (exchange.responseComplete())
{
result = exchange.terminateResponse(failure);
LOG.debug("Failed response from request {}", exchange);
}
}
if (result != null)