Re: Full socket send buffer prevents cancel, timeout

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Stephen R(dot) van den Berg" <srb(at)cuci(dot)nl>
Cc: Michael Fuhr <mike(at)fuhr(dot)org>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Full socket send buffer prevents cancel, timeout
Date: 2008-10-27 19:56:53
Message-ID: 23590.1225137413@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Stephen R. van den Berg" <srb(at)cuci(dot)nl> writes:
> Tom Lane wrote:
>> "Stephen R. van den Berg" <srb(at)cuci(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2008-10-27 20:08:48 Re: CREATE TABLE AS WITH NO DATA
Previous Message Bruce Momjian 2008-10-27 19:36:16 Re: [BUGS] libpq does not manage SSL callbacks properly when other libraries are involved.