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 1nALms-0000Lt-Mf for pgsql-general@arkaria.postgresql.org; Thu, 20 Jan 2022 00:58:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nALmr-0007vi-HB for pgsql-general@arkaria.postgresql.org; Thu, 20 Jan 2022 00:58:49 +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 1nALmr-0007vZ-6t for pgsql-general@lists.postgresql.org; Thu, 20 Jan 2022 00:58:49 +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 1nALmp-0006x1-63 for pgsql-general@postgresql.org; Thu, 20 Jan 2022 00:58:48 +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 20K0whkI785016; Wed, 19 Jan 2022 19:58:43 -0500 From: Tom Lane To: Michael Paquier cc: Thomas Munro , Carla Iriberri , pgsql-general Subject: Re: could not accept SSL connection: Success In-reply-to: References: Comments: In-reply-to Michael Paquier message dated "Thu, 20 Jan 2022 09:32:33 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <785014.1642640323.1@sss.pgh.pa.us> Date: Wed, 19 Jan 2022 19:58:43 -0500 Message-ID: <785015.1642640323@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Michael Paquier writes: > I don't think that it makes much sense to leave this unchecked as the > message is confusing as it stands. Perhaps we could do something like > the attached by adding a note about OpenSSL 3.0 to revisit this code > once we unplug support for 1.1.1 and avoiding the errno==0 case? If I'm reading this patch correctly, you have it calling the case "EOF detected" in one place, "internal failure" in another, and failing to touch several more places where we deal with SSL_ERROR_SYSCALL. I don't find that to be an improvement --- inconsistency is worse than a confusing error message. Personally I'm satisfied to leave it as-is, since this issue apparently occurs only in a minority of OpenSSL versions, and not the newest. regards, tom lane