Code Review 6964547: Impossible to set useV4 in SocksSocketImpl

Chris Hegarty chris.hegarty at oracle.com
Wed Jan 12 09:41:29 PST 2011


On 01/12/11 03:24 PM, Alan Bateman wrote:
> Chris Hegarty wrote:
>> I received some offline comments on this.
>>
>> 1) SocksProxyVersionFour -> SocksProxy
>> 2) SocksProxy now contains the protocol version
>>
>> Updated webrev:
>>
>> http://cr.openjdk.java.net/~chegar/6964547/webrev.01/webrev/
>>
>> -Chris.
> This looks much cleaner. A few minor comments on the changes:
>
> - I assume DefaultProxySelector.SOCKS_PROXY_VERSION can be private
Yes.

> - DefaultProxySelector line 300, might be simpler to just do "return
> SocksProxy.create(saddr, version)".
Agreed.

> On the test, it looks like it will pass if we always use V4. Should the
> main thread get the completion status of the thread so that it knows
> that the right versions were sent?
Yes.

Updated Webrev:
   http://cr.openjdk.java.net/~chegar/6964547/webrev.02/webrev/

-Chris.

>
> -Alan.



More information about the net-dev mailing list