Re: Full socket send buffer prevents cancel, timeout - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Full socket send buffer prevents cancel, timeout
Date
Msg-id 23590.1225137413@sss.pgh.pa.us
Whole thread Raw
In response to Re: Full socket send buffer prevents cancel, timeout  ("Stephen R. van den Berg" <srb@cuci.nl>)
List pgsql-hackers
"Stephen R. van den Berg" <srb@cuci.nl> writes:
> Tom Lane wrote:
>> "Stephen R. van den Berg" <srb@cuci.nl> writes:
>>> What about simply closing the filedescriptor upon discovering a
>>> non-empty sendbuffer upon timeout/querycancel?

>> So in other words, convert any network glitch, no matter how small,
>> into an instant fatal error?

> The fact that a timeout or querycancel has taken place, indicates that
> this does *not* act on just any network glitch.

No, just any one that is unfortunate enough to occur at the moment of a
query timeout or cancel.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [BUGS] libpq does not manage SSL callbacks properly when other libraries are involved.
Next
From: Tom Lane
Date:
Subject: Re: CREATE TABLE AS WITH NO DATA