pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedConnection timeout
3+ messages / 3 participants
[nested] [flat]
* Connection timeout
@ 2002-02-08 18:08 Mihai Gheorghiu <tanethq@earthlink.net>
0 siblings, 0 replies; 3+ messages in thread
From: Mihai Gheorghiu @ 2002-02-08 18:08 UTC (permalink / raw)
To: pgsql-jdbc
I connect to PostgreSQL via Poolman 2.1 (Thanks again to all those who
recommended it :-)
Assume a user opens a form that initiates a SELECT FOR UPDATE, then leaves
for lunch :-(
In 20 minutes, Poolman times the connection out. What happens to the lock
that was placed?
Can someone please point me towards a relevant doc?
Thank you all.
^ permalink raw reply [nested|flat] 3+ messages in thread
* connection timeout?
@ 2004-12-03 16:03 Antonini Roberto <Roberto.Antonini@TILAB.COM>
2004-12-03 20:50 ` Re: connection timeout? Oliver Jowett <oliver@opencloud.com>
0 siblings, 1 reply; 3+ messages in thread
From: Antonini Roberto @ 2004-12-03 16:03 UTC (permalink / raw)
To: pgsql-jdbc
Hi all,
I executed following test in a classical scenario involving an
application on a PC connected to a DB Server where postgres is running:
* I disconnected network cable between PC and DB server
* I started the application on PC
The application remains blocked on
DriverManager::getConnection
method invocation.
Is it a timeout issue?
If so, how can I set this timeout?
Thanks in advance,
Roberto.
Gruppo Telecom Italia - Direzione e coordinamento di Telecom Italia S.p.A.
====================================================================
CONFIDENTIALITY NOTICE
This message and its attachments are addressed solely to the persons
above and may contain confidential information. If you have received
the message in error, be informed that any use of the content hereof
is prohibited. Please return it immediately to the sender and delete
the message. Should you have any questions, please send an e_mail to
MailAdmin@tilab.com. Thank you
====================================================================
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: connection timeout?
2004-12-03 16:03 connection timeout? Antonini Roberto <Roberto.Antonini@TILAB.COM>
@ 2004-12-03 20:50 ` Oliver Jowett <oliver@opencloud.com>
0 siblings, 0 replies; 3+ messages in thread
From: Oliver Jowett @ 2004-12-03 20:50 UTC (permalink / raw)
To: Antonini Roberto <Roberto.Antonini@tilab.com>; +Cc: pgsql-jdbc
Antonini Roberto wrote:
> * I disconnected network cable between PC and DB server
> The application remains blocked on
> DriverManager::getConnection
I'd expect this to eventually time out, but it might take several
minutes. It depends on your TCP stack.
> Is it a timeout issue?
Yes.
> If so, how can I set this timeout?
Currently you can't, mostly because it hasn't been a big enough issue
for anyone to step forward and implement.
When implemented I'd expect it would be set via a URL parameter.
The Java socket primitives makes it quite hard to do timeouts on connect
anyway. Either you have to use NIO (doesn't exist until 1.4, would be an
invasive change) or Socket.connect() (doesn't exist until 1.4). So
you're out of luck under 1.3, and the driver will have to do conditional
compilation to use 1.4-specific code as it needs to build under 1.3.
-O
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2004-12-03 20:50 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-02-08 18:08 Connection timeout Mihai Gheorghiu <tanethq@earthlink.net>
2004-12-03 16:03 connection timeout? Antonini Roberto <Roberto.Antonini@TILAB.COM>
2004-12-03 20:50 ` Re: connection timeout? Oliver Jowett <oliver@opencloud.com>
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