pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Woody Woodring <george.woodring@iglass.net>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Connection attempt hangs when server is unresponsive
Date: Thu, 06 Dec 2007 11:33:33 +1300
Message-ID: <4757273D.3090307@opencloud.com> (raw)
In-Reply-To: <086f01c83775$42d5d370$80b1a8c0@istructure.com>
References: <086f01c83775$42d5d370$80b1a8c0@istructure.com>

Woody Woodring wrote:

> Since createDataSource is synchronized we traced them to the following
> thread that had them blocked:
> 
>          at java.net.PlainSocketImpl.socketConnect(Native Method) 

That's an OS-level method, if it blocks and you have not set 
loginTimeout there is not much the driver can do.

Maybe you should set loginTimeout? (It is more expensive as it spawns 
extra threads to deal with timeouts in this sort of case, though)

-O



view thread (3+ messages)  latest in thread

Message-ID: <4757273D.3090307@opencloud.com>
Permalink:  ../4757273D.3090307@opencloud.com/
Also on:    postgresql.org/message-id/4757273D.3090307@opencloud.com

 · 

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: oliver@opencloud.com, george.woodring@iglass.net
  Subject: Re: Connection attempt hangs when server is unresponsive
  In-Reply-To: <4757273D.3090307@opencloud.com>
  References: <086f01c83775$42d5d370$80b1a8c0@istructure.com> <4757273D.3090307@opencloud.com>

* 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