MEDIUM: ssl: never return 0 from the BIO read callback
Commit "BUG/MEDIUM: ssl: ignore unexpected EOFs reported by the SSL
library" sets SSL_OP_IGNORE_UNEXPECTED_EOF so that a close without a
close_notify is no longer turned into an error by OpenSSL 4.0 and AWS-LC
5.9. But with this option, the library reports such a close exactly as
if a close_notify had been received, so there is no way to tell them
apart anymore. We don't use that information for now, but we may want
to in the future.
Let's remove the option, and make ha_ssl_read() return -1 with no retry
flag instead of 0 when the connection is shut or in error, as is already
done for a shutdown during a frontend handshake. The library then
reports a syscall failure, as older versions did, which
ssl_sock_to_buf() handles as a regular shutdown.
This should not be backported, the commit above is enough for the
stable versions.