Re: Fwd: libpq: indefinite block on poll during network problems

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Martijn van Oosterhout <kleptog(at)svana(dot)org>
Cc: Dmitry Samonenko <shreddingwork(at)gmail(dot)com>, Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>, pgsql-general(at)postgresql(dot)org, amit(dot)kapila16(at)gmail(dot)com
Subject: Re: Fwd: libpq: indefinite block on poll during network problems
Date: 2014-05-29 13:25:39
Message-ID: 8886.1401369939@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Martijn van Oosterhout <kleptog(at)svana(dot)org> writes:
> Something very important to note: those settings do nothing unless the
> SO_KEEPALIVE option is turned on for the socket. AFAICT libpq does not
> enable this option, hence they (probably) have no effect.

AFAICS, it does so by default since 9.0.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Vik Fearing 2014-05-29 13:26:06 Re: How to implement the skip errors for copy from ?
Previous Message John Lumby 2014-05-29 13:12:07 Re: Extended Prefetching using Asynchronous IO - proposal and patch