mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-30 07:11:04 +01:00
BUG/MINOR: ssl: error is not reported if it occurs simultaneously with peer close detection.
This commit is contained in:
parent
644cde05f6
commit
1c64686788
@ -1078,6 +1078,11 @@ static int ssl_sock_to_buf(struct connection *conn, struct buffer *buf, int coun
|
|||||||
else if (ret == 0) {
|
else if (ret == 0) {
|
||||||
ret = SSL_get_error(conn->xprt_ctx, ret);
|
ret = SSL_get_error(conn->xprt_ctx, ret);
|
||||||
if (ret != SSL_ERROR_ZERO_RETURN) {
|
if (ret != SSL_ERROR_ZERO_RETURN) {
|
||||||
|
/* error on protocol or underlying transport */
|
||||||
|
if ((ret != SSL_ERROR_SYSCALL)
|
||||||
|
|| (errno && (errno != EAGAIN)))
|
||||||
|
conn->flags |= CO_FL_ERROR;
|
||||||
|
|
||||||
/* Clear openssl global errors stack */
|
/* Clear openssl global errors stack */
|
||||||
ERR_clear_error();
|
ERR_clear_error();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user