RFR: 8347000: Bug in com/sun/net/httpserver/bugs/B6361557.java test

Jaikiran Pai jpai at openjdk.org
Mon Jan 6 05:49:14 UTC 2025


Can I please get a review of this change which proposes to address the test-only issue noted in https://bugs.openjdk.org/browse/JDK-8347000?

As noted in that issue, the test issues HTTP requests with `Content-Length` set to `0` implying no request body. However, the code unintentionally sends additional bytes (14 bytes each request) as part of the request. The JDK's `HttpServer` implementation currently doesn't cause errors for such requests (although the HTTP/1.1 RFC expects an error to be raised). 

The change in this PR merely addresses the test code to not send these additional bytes. The test continues to pass after this change.

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

Commit messages:
 - 8347000: Bug in com/sun/net/httpserver/bugs/B6361557.java test

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

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


More information about the net-dev mailing list