Skip to content

Commit

Permalink
Merge pull request #5534 from Pandrex247/Dont-Set-Buffer-Size-On-Comm…
Browse files Browse the repository at this point in the history
…itted-Master-Port

Don't attempt to set response buffer size on a committed response
  • Loading branch information
BalusC authored Dec 7, 2024
2 parents 7cc56a1 + bee6da5 commit 7f12621
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,11 @@ protected ResponseWriter createResponseWriter(FacesContext context) throws IOExc

// set the buffer for content, -1 indicates nothing should be set.
if (responseBufferSize != -1) {
extContext.setResponseBufferSize(responseBufferSize);
if (!extContext.isResponseCommitted()) {
extContext.setResponseBufferSize(responseBufferSize);
} else {
LOGGER.warning("Skipping attempt to set buffer size on a committed response");
}
}

// get our content type
Expand Down

0 comments on commit 7f12621

Please sign in to comment.