ret = -1;
}
BIO_clear_retry_flags(h);
- if (ret == 0 && !(ctx->conn->flags & (CO_FL_ERROR | CO_FL_SOCK_RD_SH))) {
- BIO_set_retry_read(h);
+ if (ret == 0) {
+ /* never return 0, recent libs take it for an EOF and fail the connection */
+ if (!(ctx->conn->flags & (CO_FL_ERROR | CO_FL_SOCK_RD_SH)))
+ BIO_set_retry_read(h);
ret = -1;
}
#ifdef HA_USE_KTLS
#ifdef SSL_OP_NO_RENEGOTIATION
options |= SSL_OP_NO_RENEGOTIATION;
#endif
-#ifdef SSL_OP_IGNORE_UNEXPECTED_EOF
- options |= SSL_OP_IGNORE_UNEXPECTED_EOF;
-#endif
#ifdef SSL_OP_NO_RX_CERTIFICATE_COMPRESSION
if (global_ssl.certificate_compression == 0)
else if (srv->ssl_ctx.renegotiate == SSL_RENEGOTIATE_ON)
options &= ~SSL_OP_NO_RENEGOTIATION;
#endif
-#ifdef SSL_OP_IGNORE_UNEXPECTED_EOF
- options |= SSL_OP_IGNORE_UNEXPECTED_EOF;
-#endif
#ifdef SSL_OP_NO_RX_CERTIFICATE_COMPRESSION
if (global_ssl.certificate_compression == 0)