From: Michael Paquier <michael@paquier.xyz>
To: Carla Iriberri <ciriberri@salesforce.com>
Cc: pgsql-general@postgresql.org
Subject: Re: could not accept SSL connection: Success
Date: Wed, 19 Jan 2022 13:42:00 +0900
Message-ID: <YeeWmHJnI2dtzPrp@paquier.xyz> (raw)
In-Reply-To: <CAPiM8Ai_cuKdF4YVOnCdwHrPWGCUQwiRO_gBU6OAWSUrGhNjeg@mail.gmail.com>
References: <CAPiM8Ai_cuKdF4YVOnCdwHrPWGCUQwiRO_gBU6OAWSUrGhNjeg@mail.gmail.com>
On Mon, Jan 17, 2022 at 05:05:52PM +0100, Carla Iriberri wrote:
> I saw previous discussions where different errors were logged with the
> "Success"
> message and this was corrected/treated as a bug, but I couldn't find similar
> reports specific to "could not accept SSL connection". Is this a known
> issue or
> case?
Not based my recent mailing list memories, but I may be running short.
The error comes from the backend as you say, where this log would
expect something in saved_errno to feed %m.
And, upstream documentation tells that:
https://www.openssl.org/docs/manmaster/man3/SSL_get_error.html
"On an unexpected EOF, versions before OpenSSL 3.0 returned
SSL_ERROR_SYSCALL, nothing was added to the error stack, and errno was
0. Since OpenSSL 3.0 the returned error is SSL_ERROR_SSL with a
meaningful error on the error stack."
This would mean that relying on %m would be wrong for this case. And
I guess that you are using a version of OpenSSL older than 3.0?
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: michael@paquier.xyz, ciriberri@salesforce.com
Subject: Re: could not accept SSL connection: Success
In-Reply-To: <YeeWmHJnI2dtzPrp@paquier.xyz>
References: <CAPiM8Ai_cuKdF4YVOnCdwHrPWGCUQwiRO_gBU6OAWSUrGhNjeg@mail.gmail.com> <YeeWmHJnI2dtzPrp@paquier.xyz>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox