pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedProblem with connection dropping
4+ messages / 2 participants
[nested] [flat]
* Problem with connection dropping
@ 2009-04-11 03:21 Jeff Wigal (Referee Assistant) <jeff@referee-assistant.com>
0 siblings, 1 reply; 4+ messages in thread
From: Jeff Wigal (Referee Assistant) @ 2009-04-11 03:21 UTC (permalink / raw)
To: pgsql-odbc
I'm seeing some intermittent issues with a client who is trying to connect
to my Postgres server using the ODBC driver. I have about 15 customers who
are able to connect without issue, but one seems to be having problems.
Here's what I'm seeing in the server's log file
xx.xxx.xxx.xxx(1351) 2009-04-10 21:08:20 EDT LOG: connection authorized:
user=xxx database=xxx
...
xx.xxx.xxx.xxx(1351) 2009-04-10 21:25:49 EDT LOG: could not receive data
from client: Connection timed out
xx.xxx.xxx.xxx(1351) 2009-04-10 21:25:49 EDT LOG: unexpected EOF on client
connection
xx.xxx.xxx.xxx(1089) 2009-04-10 21:25:49 EDT LOG: process 24517 acquired
ShareLock on transaction 2282399 after 609040.428 ms
xx.xxx.xxx.xxx(1351) 2009-04-10 21:25:49 EDT LOG: disconnection: session
time: 0:17:30.678 user=xxx database=xxx host=xx.xxx.xxx.xxx port=xxxx
My best guess is that they are connecting, something is getting hung up, and
when they try to reconnect, they aren't able to do so.
I'm somewhat stuck as to where to start looking for a solution. Can anyone
assist?
Thanks in advance--
Jeff Wigal
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Problem with connection dropping
@ 2009-04-11 03:27 Tom Lane <tgl@sss.pgh.pa.us>
parent: Jeff Wigal (Referee Assistant) <jeff@referee-assistant.com>
0 siblings, 1 reply; 4+ messages in thread
From: Tom Lane @ 2009-04-11 03:27 UTC (permalink / raw)
To: Jeff Wigal (Referee Assistant) <jeff@referee-assistant.com>; +Cc: pgsql-odbc
"Jeff Wigal (Referee Assistant)" <jeff@referee-assistant.com> writes:
> I'm seeing some intermittent issues with a client who is trying to connect
> to my Postgres server using the ODBC driver. I have about 15 customers who
> are able to connect without issue, but one seems to be having problems.
> Here's what I'm seeing in the server's log file
> xx.xxx.xxx.xxx(1351) 2009-04-10 21:08:20 EDT LOG: connection authorized:
> user=xxx database=xxx
> ...
> xx.xxx.xxx.xxx(1351) 2009-04-10 21:25:49 EDT LOG: could not receive data
> from client: Connection timed out
> xx.xxx.xxx.xxx(1351) 2009-04-10 21:25:49 EDT LOG: unexpected EOF on client
> connection
Is he allowing the connection to sit idle? If so, this might represent
a router timeout. What network hardware is between your machine and
this customer's?
regards, tom lane
^ permalink raw reply [nested|flat] 4+ messages in thread
* Fwd: Problem with connection dropping
@ 2009-04-14 00:55 Jeff Wigal (Referee Assistant) <jeff@referee-assistant.com>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 4+ messages in thread
From: Jeff Wigal (Referee Assistant) @ 2009-04-14 00:55 UTC (permalink / raw)
To: pgsql-odbc
Not 100% sure what's going on with the network between here and there. He's
on a Time Warner or Comcast residential network between his PC in Colorado
and my server down in Georgia.
He's not intentionally leaving a connection open. When things go as they
should, the entire transaction lasts about 3-4 minutes from connection to
disconnect. From a programming perspective, I'm pretty careful to
explicitly open and close connections with the program.
Any ideas?
On Fri, Apr 10, 2009 at 11:27 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> "Jeff Wigal (Referee Assistant)" <jeff@referee-assistant.com> writes:
> > I'm seeing some intermittent issues with a client who is trying to
> connect
> > to my Postgres server using the ODBC driver. I have about 15 customers
> who
> > are able to connect without issue, but one seems to be having problems.
>
> > Here's what I'm seeing in the server's log file
>
> > xx.xxx.xxx.xxx(1351) 2009-04-10 21:08:20 EDT LOG: connection authorized:
> > user=xxx database=xxx
> > ...
> > xx.xxx.xxx.xxx(1351) 2009-04-10 21:25:49 EDT LOG: could not receive data
> > from client: Connection timed out
> > xx.xxx.xxx.xxx(1351) 2009-04-10 21:25:49 EDT LOG: unexpected EOF on
> client
> > connection
>
> Is he allowing the connection to sit idle? If so, this might represent
> a router timeout. What network hardware is between your machine and
> this customer's?
>
> regards, tom lane
>
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Fwd: Problem with connection dropping
@ 2009-04-14 01:06 Tom Lane <tgl@sss.pgh.pa.us>
parent: Jeff Wigal (Referee Assistant) <jeff@referee-assistant.com>
0 siblings, 0 replies; 4+ messages in thread
From: Tom Lane @ 2009-04-14 01:06 UTC (permalink / raw)
To: Jeff Wigal (Referee Assistant) <jeff@referee-assistant.com>; +Cc: pgsql-odbc
"Jeff Wigal (Referee Assistant)" <jeff@referee-assistant.com> writes:
> Not 100% sure what's going on with the network between here and there. He's
> on a Time Warner or Comcast residential network between his PC in Colorado
Ick ...
> He's not intentionally leaving a connection open. When things go as they
> should, the entire transaction lasts about 3-4 minutes from connection to
> disconnect.
Well, your log shows about 17 minutes between connection and timeout,
so apparently things didn't go well. I'd like to think that Comcast
doesn't cut connections after just a minute or two of idle time, but
they might well drop 'em at ten or so minutes.
If your server platform supports it, setting tcp_keepalives_interval
to a few minutes might prevent the drop.
regards, tom lane
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2009-04-14 01:06 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2009-04-11 03:21 Problem with connection dropping Jeff Wigal (Referee Assistant) <jeff@referee-assistant.com>
2009-04-11 03:27 ` Tom Lane <tgl@sss.pgh.pa.us>
2009-04-14 00:55 ` Jeff Wigal (Referee Assistant) <jeff@referee-assistant.com>
2009-04-14 01:06 ` Tom Lane <tgl@sss.pgh.pa.us>
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