RFR: 8343791: Socket.connect API should document whether the socket will be closed when hostname resolution fails or another error occurs [v20]

Volkan Yazıcı duke at openjdk.org
Thu Nov 28 08:22:21 UTC 2024


> This PR, addressing 8343791, changes `Socket::connect()` methods to close the `Socket` in the event that the connection cannot be established, the timeout expires before the connection is established, or the socket address is unresolved.
> 
> `tier3` tests pass against the 9f00f61d3b7fa42a5e23a04f80bb4bb1a2076ef2.

Volkan Yazıcı has updated the pull request incrementally with one additional commit since the last revision:

  Enforce loopback address in the ephemeral `ServerSocket`

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/22160/files
  - new: https://git.openjdk.org/jdk/pull/22160/files/94543642..c8bc5a3e

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=22160&range=19
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=22160&range=18-19

  Stats: 3 lines in 1 file changed: 1 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/22160.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/22160/head:pull/22160

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


More information about the net-dev mailing list