pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Marlowe <smarlowe@g2switchworks.com>
To: John R Pierce <pierce@hogranch.com>
Cc: anthony@webmediaworks.co.uk
Cc: pgsql-jdbc@postgresql.org
Subject: Re: An I/O error occured while sending to the backend
Date: Wed, 06 Apr 2005 12:35:52 -0500
Message-ID: <1112808952.20921.42.camel@state.g2switchworks.com> (raw)
In-Reply-To: <42540D4D.2000504@hogranch.com>
References: <001701c53a90$cf879cc0$6600a8c0@kermit>
	<42540D4D.2000504@hogranch.com>

On Wed, 2005-04-06 at 11:24, John R Pierce wrote:
> Anthony Chaffey wrote:
> > Hi,
> >  
> >  
> > I have developed an application using the postgresql-8.0-310.jdbc3 
> > driver and connecting to a postgresql 8.0.1 database running on fedora 
> > core 3. Everything was working fine until i started running the 
> > application on the clients pc's. Randomly they receive an error, the 
> > stack trace of which is below.
> >  
> > The only difference between my testing pc and the client's pc's is that 
> > they use a wireless network card. Both my machine and the client's pc's 
> > are running Windows XP with SP2. Similar problems have been posted on 
> > this mailing list and people have suggested a firewall is clearing the 
> > connection which makes sense as the client claims this problem only 
> > occurs if the application is left idle for a short time but does anyone 
> > have any more information that may help?
> 
> its probaly exactly what you say, most firewalls, NAT routers, etc will time 
> out idle sockets after a certain number of minutes...   They have to do this, 
> otherwise the firewall's connection tracking tables will fill up with old flug.
> 
> only good solution is to catch the exception, and attempt to reopen the 
> database connection, and retry the operation....

Does setting a lower tcp_keepalive_time help these problems with NAT? 
It certainly fixed the problems I've seen with non-NAT firewalls.  (this
is a linux kernel setting, i'm sure there's an equivalent for other
unixes)



view thread (27+ messages)  latest in thread

Message-ID: <1112808952.20921.42.camel@state.g2switchworks.com>
Permalink:  ../1112808952.20921.42.camel@state.g2switchworks.com/
Also on:    postgresql.org/message-id/1112808952.20921.42.camel@state.g2switchworks.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: smarlowe@g2switchworks.com, pierce@hogranch.com, anthony@webmediaworks.co.uk
  Subject: Re: An I/O error occured while sending to the backend
  In-Reply-To: <1112808952.20921.42.camel@state.g2switchworks.com>
  References: <001701c53a90$cf879cc0$6600a8c0@kermit> <42540D4D.2000504@hogranch.com> <1112808952.20921.42.camel@state.g2switchworks.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