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

Jaikiran Pai jpai at openjdk.java.net
Mon May 16 11:44:58 UTC 2022


On Sun, 15 May 2022 06:43:27 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 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

Thank you Daniel and Michael for the constant inputs and reviews on this one.

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

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


More information about the net-dev mailing list