RFR: 8361249: PlainHttpConnection connection logic can be simplified

Daniel Fuchs dfuchs at openjdk.org
Wed Jul 2 08:43:13 UTC 2025


The PlainHttpConnection::connectAsync method implements a retry logic that will call connect() again if connect() throws the first time. This will not work, as the channel is closed when connect() throws. That logic should be removed. Reconnection should only be attempted at a higher level (MultiExchange).

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

Commit messages:
 - 8361249: PlainHttpConnection connection logic can be simplified

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

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


More information about the net-dev mailing list