RFR: 8346017: Socket.connect specified to throw UHE for unresolved address is problematic for SOCKS V5 proxy [v3]

Volkan Yazıcı duke at openjdk.org
Fri Dec 13 15:21:55 UTC 2024


On Fri, 13 Dec 2024 14:57:42 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> Volkan Yazıcı has updated the pull request incrementally with two additional commits since the last revision:
>> 
>>  - Add `ConnectSocksProxyTest`
>>  - Add `NO_PROXY` case to `ConnectFailTest`
>
> test/jdk/java/net/Socket/ConnectFailTest.java line 165:
> 
>> 163:         @SuppressWarnings("resource")
>> 164:         Socket channelSocket = SocketChannel.open().socket();
>> 165:         Socket proxiedSocket = new Socket(Proxy.NO_PROXY);
> 
> Adding a Socket created with NO_PROXY is a good idea. On naming "proxiedSocket" suggests it's proxies, I think you want noProxySocket :-)

Renamed in ac06d4dc9252e9f55b58b8569d8c578292b72b61.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/22719#discussion_r1884091659


More information about the net-dev mailing list