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 1kUagZ-0007E3-UK for pgsql-bugs@arkaria.postgresql.org; Mon, 19 Oct 2020 19:19:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kUagW-0008G6-79 for pgsql-bugs@arkaria.postgresql.org; Mon, 19 Oct 2020 19:19: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 1kUagW-0008C1-0x for pgsql-bugs@lists.postgresql.org; Mon, 19 Oct 2020 19:19: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 1kUagO-0007Ar-G7 for pgsql-bugs@lists.postgresql.org; Mon, 19 Oct 2020 19:19:07 +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 09JJIuK0434312; Mon, 19 Oct 2020 15:18:56 -0400 From: Tom Lane To: exclusion@gmail.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #16678: The ecpg connect/test5 test sometimes fails on Windows In-reply-to: <16678-253e48d34dc0c376@postgresql.org> References: <16678-253e48d34dc0c376@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Mon, 19 Oct 2020 17:00:01 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <434310.1603135136.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 19 Oct 2020 15:18:56 -0400 Message-ID: <434311.1603135136@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk PG Bug reporting form writes: > It seems that on Windows the postmaster process can close a connection > before slow client receives a FATAL message. Yeah, we've come to that conclusion before, see for instance https://www.postgresql.org/message-id/flat/E1iaD8h-0004us-K9%40gemulon.pos= tgresql.org I haven't heard any non-unpleasant ideas for working around it. One thought that might or might not improve matters is for the backend to explicitly close() the socket before exiting. We intentionally don't do that (cf 268313a95), but maybe doing it on Windows would be better than the existing issue --- assuming it fixes the issue, that is. regards, tom lane