RFR: 8287593: ShortResponseBody could be made more resilient to rogue connections

Ryan Ernst duke at openjdk.org
Wed Jun 29 19:36:10 UTC 2022


Since ReplyingServer binds to an open port on the system where tests
run, it is possible some other program probes that port while the test
is running. If the probe request does not have request params, the
request is invalid and a test assertion fails. This commit replaces that
assertion with returning a 400 response.

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

Commit messages:
 - 8287593: ShortResponseBody could be made more resilient to rogue connections

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

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


More information about the net-dev mailing list