RFR: 8308565: HttpClient: Sanitize logging while stopping

Daniel Fuchs dfuchs at openjdk.org
Mon May 22 15:54:08 UTC 2023


When the HttpClient is stopping many exception stack traces may be logged, in particular if the Http2Connection attempts to send a GOAWAY frame after the underlying TCP connection or the selector have been closed.

The Http2Connection should look at the Http2ClientImpl state before logging the exception as an error. If the Http2ClientImpl is stopping, a simple debug message should be enough.

-------------

Commit messages:
 - 8308565

Changes: https://git.openjdk.org/jdk/pull/14089/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=14089&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8308565
  Stats: 31 lines in 2 files changed: 25 ins; 1 del; 5 mod
  Patch: https://git.openjdk.org/jdk/pull/14089.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/14089/head:pull/14089

PR: https://git.openjdk.org/jdk/pull/14089


More information about the net-dev mailing list