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

Martin Doerr mdoerr at openjdk.java.net
Tue Aug 3 12:45:04 UTC 2021


On Wed, 28 Jul 2021 13:13:44 GMT, Martin Doerr <mdoerr at openjdk.org> wrote:

> 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.

Thanks for the review! Comment added.

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

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


More information about the jdk-updates-dev mailing list