RFR: 8209137: Add ability to bind to specific local address to HTTP client [v17]
Jaikiran Pai
jpai at openjdk.java.net
Mon May 9 07:52:29 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 with a new target base due to a merge or a rebase. The pull request now contains 37 commits:
- Merge latest from master branch
- add a @build to force jtreg to show consistent test results and add the relevant permissions for security manager testing
- Change the new API to accept an InetAddress instead of an InetSocketAddress, after inputs from Michael, Daniel and others
- Merge latest from master
- Implement HttpServerAdapters in test as suggested by Daniel
- fix check when security manager is enabled
- Add a unit test for the new HttpClient.Builder.localAddress method
- Implement Daniel's suggestion - only support InetSocketAddress with port 0
- Merge latest from master branch
- Merge latest from master branch
- ... and 27 more: https://git.openjdk.java.net/jdk/compare/b490a58e...d4a19dea
-------------
Changes: https://git.openjdk.java.net/jdk/pull/6690/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=6690&range=16
Stats: 530 lines in 11 files changed: 521 ins; 5 del; 4 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