Re: [BUGS] BUG #14720: getsockopt(TCP_KEEPALIVE) failed: Option notsupported by protocol

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: [BUGS] BUG #14720: getsockopt(TCP_KEEPALIVE) failed: Option notsupported by protocol
Дата
Msg-id 20170627191732.bqh677xgt5bbdo7t@alvherre.pgsql
обсуждение исходный текст
Ответ на [BUGS] BUG #14720: getsockopt(TCP_KEEPALIVE) failed: Option not supported byprotocol  (lizenko79@gmail.com)
Ответы Re: [BUGS] BUG #14720: getsockopt(TCP_KEEPALIVE) failed: Option not supported by protocol  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: [BUGS] Bus error in formatting.c NUM_numpart_to_char (9.4.12, 9.6.3, sparc)
Следующее
От: Martin Garton
Дата:
Сообщение: Re: [BUGS] BUG #14719: Logical replication unexpected behaviour whentarget table has missing columns