RFR: 8209137: Add ability to bind to specific local address to HTTP client [v20]

Jaikiran Pai jpai at openjdk.java.net
Sun May 15 06:43:27 UTC 2022


> This change proposes to implement the enhancement noted in https://bugs.openjdk.java.net/browse/JDK-8209137.
> 
> The change introduces a new API to allow applications to build a `java.net.http.HTTPClient` configured with a specific local address that will be used while creating `Socket`(s) for connections.

Jaikiran Pai has updated the pull request incrementally with one additional commit since the last revision:

  Use the byte[] address form for testing the client address instead of relying on hostname which
  doesn't always return localhost for 127.0.0.1 on Windows

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/6690/files
  - new: https://git.openjdk.java.net/jdk/pull/6690/files/d9f7b077..1584ab9e

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=6690&range=19
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=6690&range=18-19

  Stats: 6 lines in 1 file changed: 0 ins; 0 del; 6 mod
  Patch: https://git.openjdk.java.net/jdk/pull/6690.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/6690/head:pull/6690

PR: https://git.openjdk.java.net/jdk/pull/6690


More information about the net-dev mailing list