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

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>, lizenko79@gmail.com, PostgreSQL mailing lists <pgsql-bugs@postgresql.org>
Date: 2017-06-27T23:09:58Z
Lists: pgsql-bugs
Michael Paquier <michael.paquier@gmail.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


Commits

  1. Second try at fixing tcp_keepalives_idle option on Solaris.

  2. Support tcp_keepalives_idle option on Solaris.