Re: PGconn gets frozen ocassionally after select() timeout

From: Marek Peca <marek(at)duch(dot)cz>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: PGconn gets frozen ocassionally after select() timeout
Date: 2009-11-13 17:53:50
Message-ID: Pine.LNX.4.64.0911131848330.3778@tesla
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, 13 Nov 2009, Tom Lane wrote:
> Well, if you *never* get a failure, then yeah I think you have a broken
> TCP stack. The default timeouts on this sort of thing are annoyingly
> long, but they aren't infinite.

Yes, this is the case. Both ends are running on GNU/Linux system and I
expect that core components are OK, however, as I said, there are some
weird VPN relays, and maybe one of them pretends, that connection is OK,
while it is broken for a long time.

Thank you for your answers. Now I am glas I can solve the problem and
throw away ugly workarounds. I hope my original code with NOTIFY and
select() is all right, then.

Best regards,
Marek

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Vick Khera 2009-11-13 19:58:17 Re: PGconn gets frozen ocassionally after select() timeout
Previous Message Tom Lane 2009-11-13 17:45:10 Re: PGconn gets frozen ocassionally after select() timeout