Re: BUG #14720: getsockopt(TCP_KEEPALIVE) failed: Option not supported by protocol
Alvaro Herrera <alvherre@2ndquadrant.com>
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: lizenko79@gmail.com
Cc: pgsql-bugs@postgresql.org
Date: 2017-06-27T19:17:32Z
Lists: pgsql-bugs
lizenko79@gmail.com wrote: > The following bug has been logged on the website: > > Bug reference: 14720 > Logged by: Andrey Lizenko > Email address: lizenko79@gmail.com > PostgreSQL version: 9.6.3 > Operating system: Solaris 11.3 > Description: > > I've got the following message running PostgreSQL 9.6.3 on Solaris 11.3 > (both latest stable). > > > getsockopt(TCP_KEEPALIVE) failed: Option not supported by protocol > > Unfortunately, I can not reproduce it with libpq c code examples, but at > least I can see it while using pgAdmin 3 , pgAdmin 4 and zabbix monitoring > extension libzbxpgsql. > > In getsockopt manual only SO_KEEPALIVE mentioned. It sounds like your system defines the TCP_KEEPALIVE symbol at compile time but the kernel doesn't know it; maybe the package was compiled in a system where the kernel does support that option, and you're running it in one that doesn't? Are you getting the message in the client side or server side? If the latter, you should just set tcp_keepalives_idle to 0 in postgresql.conf. If the former, I think the only option is to fix the libpq compile. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
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