Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 0EF4B6328CD for ; Mon, 9 Aug 2010 13:19:02 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 49121-05 for ; Mon, 9 Aug 2010 16:18:54 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from www.postnewspapers.com.au (www.postnewspapers.com.au [202.4.227.11]) by mail.postgresql.org (Postfix) with ESMTP id 564D063234B for ; Mon, 9 Aug 2010 13:18:54 -0300 (ADT) Received: from mail.postnewspapers.com.au (202-89-185-120.static.dsl.amnet.net.au [202.89.185.120]) by www.postnewspapers.com.au (Postfix) with ESMTP id 14DF87D347; Tue, 10 Aug 2010 00:18:50 +0800 (WST) Received: from localhost (localhost [127.0.0.1]) by mail.postnewspapers.com.au (Postfix) with ESMTP id E7572AF908; Tue, 10 Aug 2010 00:17:30 +0800 (WST) X-Virus-Scanned: Debian amavisd-new at postnewspapers.com.au Received: from mail.postnewspapers.com.au ([127.0.0.1]) by localhost (mail.postnewspapers.com.au [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 10EIJ5DVxJCn; Tue, 10 Aug 2010 00:17:25 +0800 (WST) Received: from [10.1.1.3] (124-148-215-41.dyn.iinet.net.au [124.148.215.41]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "Craig Ringer", Issuer "POST Certificate Authority" (verified OK)) by mail.postnewspapers.com.au (Postfix) with ESMTPSA id 784D8AF907; Tue, 10 Aug 2010 00:17:25 +0800 (WST) Message-ID: <4C602A64.5000909@postnewspapers.com.au> Date: Tue, 10 Aug 2010 00:18:44 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100423 Lightning/1.0b1 Thunderbird/3.0.4 MIME-Version: 1.0 To: Donald Fraser CC: "[JDBC]" Subject: Re: Java proxies connection to postgres References: <4C5EB971.7000403@postnewspapers.com.au><7BF0F1662EE14F6FA6F3C8EFE951A69F@DEVELOP1> <72F787BB59B24A4C82BF8CDCB509AC17@DEVELOP1> <3A6C1566A8A7456483F4F0B1FB5BC28D@DEVELOP1> In-Reply-To: <3A6C1566A8A7456483F4F0B1FB5BC28D@DEVELOP1> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.001 tagged_above=-10 required=5 tests=BAYES_40=-0.001, T_FRT_STOCK2=0.01, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201008/38 X-Sequence-Number: 20841 On 09/08/10 23:20, Donald Fraser wrote: > You either need to modify the JDBC driver code to make it proxy aware > (see my original post for the source code on how) or you need to provide > your own implementation for the standard SocketFactory, via > Socket.setSocketImplFactory(SocketImplFactory fac), and provide your > proxy connection code here. I'm wondering if the JDBC driver could use a factory arg for the regular socket factory, like it has for SSLSocketFactory with "sslfactory". That'd make this, and other situations using proxies with weird auth schemes, various tunneling systems, etc much easier to use without JDBC driver mods or changing system-wide behaviour for potentially unrelated socket-using operations. -- Craig Ringer