Re: Any timeout feature(in libPQ) suitable for my case? - Mailing list pgsql-interfaces

From Tom Lane
Subject Re: Any timeout feature(in libPQ) suitable for my case?
Date
Msg-id 21915.1044938143@sss.pgh.pa.us
Whole thread Raw
In response to Any timeout feature(in libPQ) suitable for my case?  ("Frankie Lam" <frankie@ucr.com.hk>)
List pgsql-interfaces
"Frankie Lam" <frankie@ucr.com.hk> writes:
> I wonder if there is a timeout feature for limiting the lifetime of a
> connection in libPQ.

There is not.  I don't think it's libpq's business to be deciding
whether the connection is lost or not --- that is the province of
the kernel's TCP stack.  IMHO we should not second-guess the transport
layer.
        regards, tom lane


pgsql-interfaces by date:

Previous
From: "Frankie Lam"
Date:
Subject: Any timeout feature(in libPQ) suitable for my case?
Next
From: Matthew Vanecek
Date:
Subject: Re: Connection Error message in ECPG