[jdk11u-dev] RFR: 8266761: AssertionError in sun.net.httpserver.ServerImpl.responseCompleted

Martin Doerr mdoerr at openjdk.java.net
Wed Jul 28 13:21:01 UTC 2021


Backport of JDK-8266761. Applies cleanly except the following hunk:

--- src/jdk.httpserver/share/classes/sun/net/httpserver/ExchangeImpl.java
+++ src/jdk.httpserver/share/classes/sun/net/httpserver/ExchangeImpl.java
@@ -270,7 +269,6 @@ public void sendResponseHeaders (int rCode, long contentLen)
                     Optional.ofNullable(rspHdrs.get("Connection"))
                     .map(List::stream).orElse(Stream.empty());
             if (conheader.anyMatch("close"::equalsIgnoreCase)) {
-                Logger logger = server.getLogger();
                 logger.log (Level.DEBUG, "Connection: close requested by handler");
                 close = true;
             }

That code belongs to the enhancement JDK-8218554 which is not in 11u.

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

Commit messages:
 - Backport 2d2cd78bde7bb9101614a1ba2285d1e37d5d3249

Changes: https://git.openjdk.java.net/jdk11u-dev/pull/169/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk11u-dev&pr=169&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8266761
  Stats: 244 lines in 3 files changed: 241 ins; 3 del; 0 mod
  Patch: https://git.openjdk.java.net/jdk11u-dev/pull/169.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk11u-dev pull/169/head:pull/169

PR: https://git.openjdk.java.net/jdk11u-dev/pull/169


More information about the jdk-updates-dev mailing list