Skip to content

Commit

Permalink
Catch ISE When Servlet Writer is Flushed (#4301)
Browse files Browse the repository at this point in the history
  • Loading branch information
nbauernfeind authored Aug 10, 2023
1 parent 4ccdfd2 commit fe791f6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ public void writeHeaders(Metadata headers) {
}
try {
writer.flush();
} catch (IOException e) {
} catch (IllegalStateException | IOException e) {
logger.log(WARNING, String.format("[{%s}] Exception when flushBuffer", logId), e);
cancel(Status.fromThrowable(e));
}
Expand Down

0 comments on commit fe791f6

Please sign in to comment.