Re: PGconn gets frozen ocassionally after select() timeout

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Marek Peca <marek(at)duch(dot)cz>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: PGconn gets frozen ocassionally after select() timeout
Date: 2009-11-13 17:12:37
Message-ID: 4578.1258132357@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Marek Peca <marek(at)duch(dot)cz> writes:
> However: I can not get the point, why does the PQexec() (or PQstatus() at
> least) hang, instead of returning some error? I know, that situation with
> broken TCP connection may involve long timeouts, but it could return at
> least after several minutes, couldn't it?

"Several hours" might be more like it. How long have you waited?
In any case, that complaint should be directed to your kernel vendor
not us. We do not control how long the TCP stack waits before declaring
the connection dead.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Joao Ferreira gmail 2009-11-13 17:15:40 safelly erasing dirs/files
Previous Message Marek Peca 2009-11-13 17:02:20 Re: PGconn gets frozen ocassionally after select() timeout