mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-07 07:42:49 -04: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
1 changed files with 5 additions and 0 deletions
|
|
@ -1078,6 +1078,11 @@ static int ssl_sock_to_buf(struct connection *conn, struct buffer *buf, int coun
|
|||
else if (ret == 0) {
|
||||
ret = SSL_get_error(conn->xprt_ctx, ret);
|
||||
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 */
|
||||
ERR_clear_error();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue