Re: could not accept SSL connection: Success - Mailing list pgsql-general

From Tom Lane
Subject Re: could not accept SSL connection: Success
Date
Msg-id 785015.1642640323@sss.pgh.pa.us
Whole thread Raw
In response to Re: could not accept SSL connection: Success  (Michael Paquier <michael@paquier.xyz>)
Responses Re: could not accept SSL connection: Success
List pgsql-general
Michael Paquier <michael@paquier.xyz> 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



pgsql-general by date:

Previous
From: Michael Paquier
Date:
Subject: Re: could not accept SSL connection: Success
Next
From: Michael Paquier
Date:
Subject: Re: could not accept SSL connection: Success