pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <craig@postnewspapers.com.au>
To: Donald Fraser <postgres@kiwi-fraser.net>
Cc: [JDBC] <pgsql-jdbc@postgresql.org>
Subject: Re: Java proxies connection to postgres
Date: Tue, 10 Aug 2010 00:18:44 +0800
Message-ID: <4C602A64.5000909@postnewspapers.com.au> (raw)
In-Reply-To: <3A6C1566A8A7456483F4F0B1FB5BC28D@DEVELOP1>
References: <AANLkTimPbHhimxz48Yva7apqBaTFH=DvDww-3gb1pc2h@mail.gmail.com>
	<4C5EB971.7000403@postnewspapers.com.au>
	<AANLkTi=xL6TOwZ2RbZhp0Fj8xfL8jZqmGpd58e_rjJOd@mail.gmail.com>
	<AANLkTimWGZAAKzcTP=DYkYyqJ+6QQcvokmvuCn1o_-Ke@mail.gmail.com>
	<7BF0F1662EE14F6FA6F3C8EFE951A69F@DEVELOP1>
	<AANLkTin=ra9vcUZyNmiFiXGt5K-=n=Sz3ezjdic83cNc@mail.gmail.com>
	<72F787BB59B24A4C82BF8CDCB509AC17@DEVELOP1>
	<alpine.DEB.2.00.1008091354510.2654@aragorn.flymine.org>
	<3A6C1566A8A7456483F4F0B1FB5BC28D@DEVELOP1>

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



view thread (17+ messages)  latest in thread

Message-ID: <4C602A64.5000909@postnewspapers.com.au>
Permalink:  ../4C602A64.5000909@postnewspapers.com.au/
Also on:    postgresql.org/message-id/4C602A64.5000909@postnewspapers.com.au

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: craig@postnewspapers.com.au, postgres@kiwi-fraser.net
  Subject: Re: Java proxies connection to postgres
  In-Reply-To: <4C602A64.5000909@postnewspapers.com.au>
  References: <AANLkTimPbHhimxz48Yva7apqBaTFH=DvDww-3gb1pc2h@mail.gmail.com> <4C5EB971.7000403@postnewspapers.com.au> <AANLkTi=xL6TOwZ2RbZhp0Fj8xfL8jZqmGpd58e_rjJOd@mail.gmail.com> <AANLkTimWGZAAKzcTP=DYkYyqJ+6QQcvokmvuCn1o_-Ke@mail.gmail.com> <7BF0F1662EE14F6FA6F3C8EFE951A69F@DEVELOP1> <AANLkTin=ra9vcUZyNmiFiXGt5K-=n=Sz3ezjdic83cNc@mail.gmail.com> <72F787BB59B24A4C82BF8CDCB509AC17@DEVELOP1> <alpine.DEB.2.00.1008091354510.2654@aragorn.flymine.org> <3A6C1566A8A7456483F4F0B1FB5BC28D@DEVELOP1> <4C602A64.5000909@postnewspapers.com.au>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox