pgjdbc/pgjdbc GitHub issues and pull requests (mirror)  
help / color / mirror / Atom feed
From: jkutner (@jkutner) <[email protected]>
To: pgjdbc/pgjdbc <[email protected]>
Subject: Re: [pgjdbc/pgjdbc] issue #975: Version from 42.1.0 can't connect to 127.0.0.1 with System SOCKS proxy
Date: Fri, 06 Oct 2017 04:46:56 +0000
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>

@jorsol thanks for the ping. I can make a patch quickly if that is preferable to reverting. however, I'm unsure of the best solution. I think we have three options:

* Explicitly check for `localhost`, or `127.0.0.1` and disable the [deferred host resolution](https://github.com/pgjdbc/pgjdbc/blob/acff9495b8745bce30d93d61e77caf81d9748b4b/pgjdbc/src/main/java/...).
* Attempt to resolve the hostname if the deferred resolution fails (i.e. try to resolve the hostname with `new InetSocketAddress` if `socket.connect` fails).
* Add an option to explicitly disable the deferred resolution (i.e. never use the socks proxy).

How do other libraries/frameworks deal with `localhost` and a `socksProxyHost`? There might be a precedent. 

view thread (30+ messages)  latest in thread

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 using the --to and --cc options:
  reply via email

  To: github://pgjdbc/pgjdbc
  Cc: [email protected], [email protected]
  Subject: Re: [pgjdbc/pgjdbc] issue #975: Version from 42.1.0 can't connect to 127.0.0.1 with System SOCKS proxy
  In-Reply-To: <<[email protected]>>

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

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