RFR: JDK-7122887 - JDK ignores Gnome3 proxy settings
Chris Hegarty
chris.hegarty at oracle.com
Wed Oct 23 11:21:59 PDT 2013
Hi Dan,
Firstly, thank you for working on this. This is really useful, and I'm
glad to see it going into JDK 8.
I grabed the patch and built it. All looks fine, and the updates you
added to the manual test are really useful to verify the implementation.
All in all I'm happy with this change, just a small comment...
Why did you move initJavaClass to
Java_sun_net_spi_DefaultProxySelector_getSystemProxy. I think it should
be in Java_sun_net_spi_DefaultProxySelector_init, so it is executed just
once.
-Chris.
On 10/22/2013 08:30 PM, Dan Xu wrote:
>
> Hi All,
>
> Please review the fix towards gnome proxy settings. In the recent Gnome
> versions, it has phased out GConf and swithed to use GSettings to handle
> all the system configurations. But in JDK, we are still use GConf-based
> proxy resolution, which generates wrong results in the latest linux
> distributions. In this change, I added a new way to resolve proxy
> correctly, which makes use of GProxyResolver to handle newwork proxy
> resolution. It is based on GSettings, so every time proxy changed in the
> GSettings, it will catch that and give the updated results. In
> addition, it can also handle proxy ignore pattern correctly. For
> example, it can handle not only plain domain name pattern, like
> domain.com, but it can also handle more complex patterns, like
> *.domain.com, IPv4/CIDR (like 127.0.0.1/8), IPv6/CIDR, etc.
>
> The code changes have been tested manually. Here are the bug details and
> webrev changes.
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-7122887
> webrev: http://cr.openjdk.java.net/~dxu/7122887/webrev.00/
>
> Thanks,
>
> -Dan
More information about the net-dev
mailing list