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 1kWQl8-0007hw-Ht for pgsql-bugs@arkaria.postgresql.org; Sat, 24 Oct 2020 21:07:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kWQl7-0002j1-7f for pgsql-bugs@arkaria.postgresql.org; Sat, 24 Oct 2020 21:07:29 +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 1kWQl7-0002iu-1x for pgsql-bugs@lists.postgresql.org; Sat, 24 Oct 2020 21:07:29 +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 1kWQl4-0005cp-F3 for pgsql-bugs@lists.postgresql.org; Sat, 24 Oct 2020 21:07:28 +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 09OL7NFs392146; Sat, 24 Oct 2020 17:07:23 -0400 From: Tom Lane To: Alexander Lakhin cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #16678: The ecpg connect/test5 test sometimes fails on Windows In-reply-to: References: <16678-253e48d34dc0c376@postgresql.org> <434311.1603135136@sss.pgh.pa.us> <383222.1603561145@sss.pgh.pa.us> Comments: In-reply-to Alexander Lakhin message dated "Sun, 25 Oct 2020 00:00:00 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <392144.1603573643.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sat, 24 Oct 2020 17:07:23 -0400 Message-ID: <392145.1603573643@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Alexander Lakhin writes: > But I'm inclined to stay on the previous level with "shutdown && > closesocket" as recommended for server side: > https://docs.microsoft.com/en-us/windows/win32/winsock/graceful-shutdown= -linger-options-and-socket-closure-2 > Please look at the draft patch. If that actually fixes things, I'm okay with it --- do you find that it prevents the test failure even with client-side delays? regards, tom lane