Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n9tI6-0007hO-09 for pgsql-hackers@arkaria.postgresql.org; Tue, 18 Jan 2022 18:33:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1n9tI4-0003Ru-Rg for pgsql-hackers@arkaria.postgresql.org; Tue, 18 Jan 2022 18:33:08 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n9tI4-0003RW-It for pgsql-hackers@lists.postgresql.org; Tue, 18 Jan 2022 18:33:08 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n9tI2-0000bi-Kp for pgsql-hackers@postgresql.org; Tue, 18 Jan 2022 18:33:08 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 20IIWtBO330590; Tue, 18 Jan 2022 13:32:56 -0500 From: Tom Lane To: Jelte Fennema cc: Andres Freund , Fujii Masao , Zhihong Yu , "pgsql-hackers@postgresql.org" Subject: Re: [EXTERNAL] Re: PQcancel does not use tcp_user_timeout, connect_timeout and keepalive settings In-reply-to: References: <1473763.1636578406@sss.pgh.pa.us> <20220105184225.5xfekapzg5o3uq7a@alap3.anarazel.de> <794237.1641408889@sss.pgh.pa.us> <2912315.1641943641@sss.pgh.pa.us> <2918809.1641947968@sss.pgh.pa.us> <2937814.1641960929@sss.pgh.pa.us> <144978.1642451980@sss.pgh.pa.us> Comments: In-reply-to Jelte Fennema message dated "Tue, 18 Jan 2022 00:35:36 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <330588.1642530775.1@sss.pgh.pa.us> Date: Tue, 18 Jan 2022 13:32:55 -0500 Message-ID: <330589.1642530775@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Jelte Fennema writes: > It seems the man page of TCP_USER_TIMEOUT does not align with > reality then. When I use it on my local machine it is effectively used > as a connection timeout too. Huh, I should have thought to try that. I confirm this behavior on RHEL8 (kernel 4.18.0). Not the first mistake I've seen in Linux man pages :-(. Doesn't seem to help on macOS, but AFAICT that platform doesn't have TCP_USER_TIMEOUT, so no surprise there. Anyway, that removes my objection, so I'll proceed with committing. Thanks for working on this patch! regards, tom lane