RFR: 8346017: Socket.connect specified to throw UHE for unresolved address is problematic for SOCKS V5 proxy [v2]
Volkan Yazıcı
duke at openjdk.org
Fri Dec 13 14:56:56 UTC 2024
On Thu, 12 Dec 2024 19:11:10 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> Volkan Yazıcı has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Fix `Socket::connect` javadoc
>
> The update to Socket looks okay, thanks.
>
> ConnectFailTest is a test for connect failing. I'm tempted to suggest that we create a new test for SOCKS and not modify ConnectFailTest. With SOCKS then the connect may succeed with an unresolved address so I think different to the direct case. Daniel, do you agree on this?
@AlanBateman, @dfuch, implemented the following two changes:
1. Added `new Socket(Proxy.NO_PROXY)` case to `ConnectFailTest`
2. Added `ConnectSocksProxyTest` cloning `ConnectFailTest` for a SOCKS proxy socket
Together with @dfuch, we decided to postpone the HTTP proxy socket case to a separate future PR, since there is more work there needs to be done there.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/22719#issuecomment-2541633452
More information about the net-dev
mailing list