Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jetty 9.4.x 4331 async close complete #4378

Closed
wants to merge 12 commits into from
Expand Up @@ -717,6 +717,13 @@ public boolean onRequestComplete()
return result;
}

void onResponseComplete()
{
if (LOG.isDebugEnabled())
LOG.debug("onResponseComplete {}", this);
_combinedListener.onResponseEnd(_request);
}

public void onCompleted()
{
if (LOG.isDebugEnabled())
Expand Down Expand Up @@ -1194,11 +1201,6 @@ public void succeeded()
_combinedListener.onResponseCommit(_request);
if (_length > 0)
_combinedListener.onResponseContent(_request, _content);
if (_complete && _state.completeResponse())
{
_response.getHttpOutput().closed();
_combinedListener.onResponseEnd(_request);
}
super.succeeded();
}

Expand All @@ -1222,7 +1224,6 @@ public void succeeded()
@Override
public void failed(Throwable th)
{
_response.getHttpOutput().closed();
abort(x);
super.failed(x);
}
Expand Down