Re: New to Postgresql - Backend timeout /JDBC - Mailing list pgsql-bugs

From Peter V. Cooper
Subject Re: New to Postgresql - Backend timeout /JDBC
Date
Msg-id 5.1.0.14.0.20020201091404.00ad6d10@mail.gte.net
Whole thread Raw
In response to Re: New to Postgresql - Backend timeout /JDBC  (Stefano Reksten <sreksten@sdb.it>)
List pgsql-bugs
This is definitely not a problem with the server Tom Lane has told me
and I have verified the with my sources. It seems to be in the JDBC driver.

It only seems to happen when the JDBC client and the postgresql server
are on seperate machines and possibly on different networks.
I have further talked with the site where it happens and researched
the isClosed() JDBC call. The isClosed() call according to my sources
is only required to tell you if you have closed the connection not
if the connection has been closed by a timeout. The isClosed() call
in Oracle is non-functional about timeouts across a wan. I should have
read the JDBC spec and not just the documentation. I will not make that
same mistake again when it comes to JDBC.

I have verified that the connections stay active when the JDBC client and
the postgresql server are on the same machine.  If your connections are
across a LAN and not the same machine then that would be helpful as I
will only have to research a problem with a wan and that might not be a problem
at all for my configuration. I will start my research with two machines on
the same LAN unless you can tell me that your configuration is across a LAN.

TIA for any info.

At 11:49 AM 2/1/2002 +0100, Stefano Reksten wrote:
>At 12.57 31/01/02 -0500, you wrote:
>>However, I'm not very familiar with Java and so I cannot dismiss the
>>possibility that some layer inside the JVM might take it upon itself
>>to close an open TCP connection after a period of inactivity.
>
>I have a Connection Pool active 365/24/7 on a site I manage, and the
>connections are opened, reused, but not closed, and I never had such a
>problem; HTH.
>
>>The pgsql-jdbc list might be a better place to ask if anyone knows of
>>such problems in a JDBC context.  Not sure how many JDBC people read
>>pgsql-bugs.
>
>Well, at least one ;)
>
>Ciao,
>         Stefano
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

pgsql-bugs by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: strange bug with vacuum
Next
From: 520003909361-0001@t-online.de (Raimund Jakobsmeyer)
Date:
Subject: postgresql-7.2b3+jdbc+DatabaseMetaData