From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: lizenko79@gmail.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #14720: getsockopt(TCP_KEEPALIVE) failed: Option not supported by protocol
Date: Tue, 27 Jun 2017 15:17:32 -0400
Message-ID: <20170627191732.bqh677xgt5bbdo7t@alvherre.pgsql> (raw)
In-Reply-To: <20170627163757.25161.528@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: alvherre@2ndquadrant.com, lizenko79@gmail.com
Subject: Re: BUG #14720: getsockopt(TCP_KEEPALIVE) failed: Option not supported by protocol
In-Reply-To: <20170627191732.bqh677xgt5bbdo7t@alvherre.pgsql>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox