Обсуждение: [JDBC] [pgjdbc/pgjdbc] 9813c6: fix: Added support for socksNonProxyHostsproperty...
Branch: refs/heads/master Home: https://github.com/pgjdbc/pgjdbc Commit: 9813c685cae2cbfbc561a6220ba388cef08f34b0 https://github.com/pgjdbc/pgjdbc/commit/9813c685cae2cbfbc561a6220ba388cef08f34b0 Author: Joe Kutner <jpkutner@gmail.com>Date: 2017-10-26 (Thu, 26 Oct 2017) Changed paths: M pgjdbc/src/main/java/org/postgresql/core/PGStream.java M pgjdbc/src/main/java/org/postgresql/util/HostSpec.java A pgjdbc/src/test/java/org/postgresql/test/jre8/core/Jre8TestSuite.java A pgjdbc/src/test/java/org/postgresql/test/jre8/core/SocksProxyTest.java A pgjdbc/src/test/java/org/postgresql/test/util/HostSpecTest.java Log Message: ----------- fix: Added support for socksNonProxyHosts property (#975) (#985) When a socksProxyHost is configured, there needs to be an escape value so that some hosts are resolved immediately. The Java Networking spec[1] does not specify such an option, but the socksNonProxyHosts is used in the sun.net.spi.DefaultProxySelector. The behavior is mentioned in bug report 5001942[2]. This commit reimplements the logic in the DefaultProxySelector.select method to determine if the host should be resolved immediately. [1] http://docs.oracle.com/javase/8/docs/technotes/guides/net/proxies.html [2] http://bugs.java.com/bugdatabase/view_bug.do?bug_id=5001942 -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc