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
-
Second try at fixing tcp_keepalives_idle option on Solaris.
- e97b7372bf94 9.4.13 landed
- cc154d9a0022 9.3.18 landed
- 99255d73c07c 10.0 landed
- 63f5db8ab7e7 9.5.8 landed
- 5e7447132000 9.2.22 landed
- 43c67e32fb29 9.6.4 landed
-
Support tcp_keepalives_idle option on Solaris.
- f0256c774daa 10.0 landed
- d16e96fb2aa1 9.5.8 landed
- c2cb606a2ead 9.4.13 landed
- 9ce7f39195dc 9.3.18 landed
- 6ccab9242b34 9.2.22 landed
- 55968ed89496 9.6.4 landed