Re: Error-like LOG when connecting with SSL for password authentication

Vaishnavi Prabakaran <vaishnaviprabakaran@gmail.com>

From: Vaishnavi Prabakaran <vaishnaviprabakaran@gmail.com>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: PostgreSQL mailing lists <pgsql-hackers@postgresql.org>
Date: 2017-05-23T02:11:23Z
Lists: pgsql-hackers
On Mon, May 22, 2017 at 5:10 PM, Michael Paquier <michael.paquier@gmail.com>
wrote:

> If the protocol version is SSL
> 3.0 or TLS 1.0, this result code is returned only if a closure alert
> has occurred in the protocol, i.e. if the connection has been closed
> cleanly. Note that in this case SSL_ERROR_ZERO_RETURN does not
> necessarily indicate that the underlying transport has been closed.
>

I guess this error code exist even for SSL2 protocol, In that case, don't
we need to keep the current code for this error code?

Regards,
Vaishnavi,
Fujitsu Australia.

Commits

  1. Treat clean shutdown of an SSL connection same as the non-SSL case.