Skip to content

Commit

Permalink
[UNDERTOW-2243] At ServletOutputStreamImpl.updateWritten, flush the c…
Browse files Browse the repository at this point in the history
…hannel instead of closing it if full content length has been written

Signed-off-by: Flavia Rainone <frainone@redhat.com>
  • Loading branch information
fl4via committed Feb 28, 2023
1 parent ad6889a commit 29a92c2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ void updateWritten(final long len) throws IOException {
this.written += len;
long contentLength = servletRequestContext.getOriginalResponse().getContentLength();
if (contentLength != -1 && this.written >= contentLength) {
close();
flushInternal();
}
}

Expand Down

0 comments on commit 29a92c2

Please sign in to comment.