Bug in URLConnection?
Paulo Levi
i30817 at gmail.com
Wed Dec 2 11:18:21 PST 2009
The problem is that the proxyselector is being called at all. I have a real
use case where i use the proxy selector to request proxy information for the
user. To do that i have to make a (very dirty) url connection to a set of
sites one of which i assume to be always up.
This is recursive. To avoid that recursion i thought i could use that call,
since the javadoc states:
"Same as openConnection(), except that the connection will be made through
the specified proxy; Protocol handlers that do not support proxing will
ignore the proxy parameter and make a normal connection. Calling this method
*preempts the system's default ProxySelector settings.* "
I can and do avoid it with a object boolean, but i thought you should know.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/net-dev/attachments/20091202/b7589fcc/attachment.html
More information about the net-dev
mailing list