Re: BUG #14720: getsockopt(TCP_KEEPALIVE) failed: Option not supported by protocol

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
Cc: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, lizenko79(at)gmail(dot)com, PostgreSQL mailing lists <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #14720: getsockopt(TCP_KEEPALIVE) failed: Option not supported by protocol
Date: 2017-06-27 23:09:58
Message-ID: 5634.1498604998@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Michael Paquier <michael(dot)paquier(at)gmail(dot)com> writes:
> What about defining a PG_TCP_KEEPALIVE instead?

I thought about that, but it would complicate constructing the elog
messages, so I didn't bother. It might be worth working harder if
we ever grow any more alternatives.

> Side note: Windows has something with a different set of options:
> https://msdn.microsoft.com/en-us/library/windows/desktop/ms740476(v=vs.85).aspx

Yeah, the Windows part of that code is a real mess. But it works
as far as I've heard.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Amol Dongare 2017-06-28 13:18:58 Multi-Master Replication
Previous Message Michael Paquier 2017-06-27 22:48:56 Re: BUG #14720: getsockopt(TCP_KEEPALIVE) failed: Option not supported by protocol