Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dPzdH-0003ZZ-Bb for pgsql-bugs@arkaria.postgresql.org; Tue, 27 Jun 2017 23:10:55 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dPzdG-0001tQ-Ps for pgsql-bugs@arkaria.postgresql.org; Tue, 27 Jun 2017 23:10:54 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dPzcY-0000cW-Tf for pgsql-bugs@postgresql.org; Tue, 27 Jun 2017 23:10:10 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dPzcU-0005Jv-Si for pgsql-bugs@postgresql.org; Tue, 27 Jun 2017 23:10:10 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v5RN9wY8005635; Tue, 27 Jun 2017 19:09:58 -0400 From: Tom Lane To: Michael Paquier cc: Alvaro Herrera , lizenko79@gmail.com, PostgreSQL mailing lists Subject: Re: BUG #14720: getsockopt(TCP_KEEPALIVE) failed: Option not supported by protocol In-reply-to: References: <20170627191732.bqh677xgt5bbdo7t@alvherre.pgsql> <20527.1498594613@sss.pgh.pa.us> <1982.1498602401@sss.pgh.pa.us> Comments: In-reply-to Michael Paquier message dated "Wed, 28 Jun 2017 07:48:56 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <5633.1498604998.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 27 Jun 2017 19:09:58 -0400 Message-ID: <5634.1498604998@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Michael Paquier 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=3Dvs.= 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 --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs