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 1nIL9R-0007qW-D4 for pgsql-bugs@arkaria.postgresql.org; Fri, 11 Feb 2022 01:55:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nIL9Q-0006Xn-80 for pgsql-bugs@arkaria.postgresql.org; Fri, 11 Feb 2022 01:55: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 1nIL9O-0006XX-A1 for pgsql-bugs@lists.postgresql.org; Fri, 11 Feb 2022 01:55:07 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nIL9K-0001Lp-AP for pgsql-bugs@lists.postgresql.org; Fri, 11 Feb 2022 01:55:05 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 616353200EC0; Thu, 10 Feb 2022 20:54:58 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Thu, 10 Feb 2022 20:54:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; bh=NvZTMOff+aDJePCIylh/yyrYklFSQN+NZ9QfAB h+E24=; b=zJCAbb9Mo62jR6jLVlhOAC5CZFKe+R5V+ydBzAAKrR78itAmK7WGHh ribT4od996AkNyA3XwrjPATwTBELmf7UNw8vTXcPeYgl5hQemsUaKKehw/RGwIP7 dCMCVfagh7xu5Ej1gRQYaXsxM1sNDLD/EMqV1l+mWcP/5Lty00xUgWWkFh519Le5 8dfAyKpFtZPnYpEyIDnr5bblh+HDBj1q6ub+QiJm7ceIfeNp/cKv+EPQ9bTuRn6X 7OLP5o1ncDwrOvDbMD5AvdEvQAxkLDfUl/L7+Q6kwSN8/1JsgFmXzqSjO/CCg19P 62nykLNleBbW6CtsU8CJ7P9CsEY4UELQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=NvZTMOff+aDJePCIy lh/yyrYklFSQN+NZ9QfABh+E24=; b=U0AIzGsiyNgftdCf3D1T5WIYdK2yqpm0U hTDlrE59h1U5vdOFTjvzr+fZ26iAiFbj02ii2rLDGCd7DYisoCa9ohvUtsgxTBdB UpxfdBaeoTrbEb2IzmbiFCcOouQk9Z0k9UhzHY7UuK8qr0/IJ/NQkHo4fBYPsLPJ YRWUsKTqkPgdYDMz5zUgTBd8YaoCCMN5gtXNljjP2UyJIjUpjJKr+8Nq8K+O0ks5 ptUcGy7G1BtyNxXUTGVEVy3tP7XvTwmKKiTIDUav7LlQmiz17Sv/s21x15kOGy1f dgyiyd2CvdEXD3L+whl5vxXV8eWGDhv3Z+GkAOHJ8E/J8Q9+G39SA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddriedvgdefhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggujgesthdtredttddtvdenucfhrhhomheptehnughrvghs ucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecuggftrfgrth htvghrnhepudekhfekleeugeevteehleffffejgeelueduleeffeeutdelffeujeffhfeu ffdunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hnughrvghssegrnhgrrhgriigvlhdruggv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 10 Feb 2022 20:54:56 -0500 (EST) Date: Thu, 10 Feb 2022 17:54:55 -0800 From: Andres Freund To: Tom Lane Cc: Daniel Gustafsson , Thomas Munro , byavuz81@gmail.com, PostgreSQL mailing lists , Heikki Linnakangas , Michael Paquier Subject: Re: BUG #17391: While using --with-ssl=openssl and PG_TEST_EXTRA='ssl' options, SSL tests fail on OpenBSD 7.0 Message-ID: <20220211015455.mkl6cvstttp5zfco@alap3.anarazel.de> References: <887CBA28-0942-4084-BE09-FBE0D6A1DB53@yesql.se> <621771.1644098845@sss.pgh.pa.us> <635760.1644108785@sss.pgh.pa.us> <1113966.1644280235@sss.pgh.pa.us> <1537890.1644462214@sss.pgh.pa.us> <1952254.1644540297@sss.pgh.pa.us> <20220211011025.ek7exh6owpzjyudn@alap3.anarazel.de> <1955929.1644542728@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1955929.1644542728@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2022-02-10 20:25:28 -0500, Tom Lane wrote: > I was staring at that for awhile too. It's my own code (from 1f39a1c0641) > but it sure confuses me now; at the very least the code is not in sync > with the comment. However, it's been that way for a couple years now and > we've not had complaints suggesting it's broken, so maybe it's the comment > that's wrong. I wonder if it could be part of the whole "walreceiver on windows not noticing connection death" business. Libpq internally gets a write failure, defers reporting it, we end up in libpqrcv_PQgetResult(), which will call PQisBusy() returning true due to write_failure, which then causes us to wait for incoming socket IO. But WaitEventForMultipleObjects() will not be signalled again due to the the edge triggered nature of FD_CLOSE. Greetings, Andres Freund