Hi all, Please review the fix for Bug - https://bugs.openjdk.java.net/browse/JDK-8161016
Bug Description: When ProxySelector is present, i.e. there is minimum one proxy set (by System Property or System Default or using Custom ProxySelector implementation) connection should be opened through those set proxies and not through a DIRECT connection. Webrev: http://cr.openjdk.java.net/~rpatil/8161016/webrev.00/ Fix: Instead of falling back to direct connection when last proxy fails to open connection, re-try once with the last proxy. An alternate solution can also be- don't try to open any connection when all set proxies fails to open a connection. Regards, Ramanand.