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

Jaikiran Pai jpai at openjdk.java.net
Thu Jan 13 13:41:39 UTC 2022


On Wed, 12 Jan 2022 08:48:12 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:

>> 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 incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains 20 additional commits since the last revision:
> 
>  - Merge latest from master branch
>  - copyright year
>  - By default add SocketPermission for java.net.http module to allow binding to non-ephemeral ports if local bind address is configured for HTTPClient
>  - Merge latest master branch
>  - Merge latest from master branch
>  - add a security manager test to verify proper permission checks happen when local address is configured on HTTPClient
>  - Merge latest from master branch
>  - add a note to the javadoc of the new API to explain that calling localAddress() is only for advanced usages
>  - move the security checks to the HttpClient itself instead of the builder
>  - first round of security manager checks
>  - ... and 10 more: https://git.openjdk.java.net/jdk/compare/57f286de...0217e1c1

Any further reviews on this PR, please?

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

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


More information about the net-dev mailing list