Skip to content

Commit

Permalink
Merge branch 'jetty-9.4.x-4376-asynccontentcomplete' into jetty-9.4.x…
Browse files Browse the repository at this point in the history
…-4331-asyncCloseComplete
  • Loading branch information
gregw committed Nov 29, 2019
2 parents f43a484 + abb7e3b commit 2fe92fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Expand Up @@ -968,6 +968,9 @@ protected void completed()
}
}

// release any aggregate buffer from a closing flush
_channel.getResponse().getHttpOutput().closed();

if (event != null)
{
cancelTimeout(event);
Expand Down
Expand Up @@ -234,6 +234,8 @@ private void write(ByteBuffer content, boolean complete) throws IOException
{
write(content, complete, blocker);
blocker.block();
if (complete)
closed();
}
catch (Exception failure)
{
Expand Down

0 comments on commit 2fe92fc

Please sign in to comment.