diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-09-13 09:05:51 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-09-13 09:05:51 +0000 |
commit | 672fc35cb792435254eee5d411d133f85a3fa299 (patch) | |
tree | dd535655e97cc77680a9b7eeba96a9376711baf1 /libnetdata | |
parent | Adding upstream version 1.42.2. (diff) | |
download | netdata-672fc35cb792435254eee5d411d133f85a3fa299.tar.xz netdata-672fc35cb792435254eee5d411d133f85a3fa299.zip |
Adding upstream version 1.42.3.upstream/1.42.3
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | libnetdata/socket/security.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libnetdata/socket/security.c b/libnetdata/socket/security.c index c1bb76345..3a3a171e5 100644 --- a/libnetdata/socket/security.c +++ b/libnetdata/socket/security.c @@ -234,6 +234,11 @@ ssize_t netdata_ssl_read(NETDATA_SSL *ssl, void *buf, size_t num) { if(unlikely(bytes <= 0)) { int err = SSL_get_error(ssl->conn, bytes); + if (err == SSL_ERROR_ZERO_RETURN) { + ssl->ssl_errno = err; + return 0; + } + if (err == SSL_ERROR_WANT_READ || err == SSL_ERROR_WANT_WRITE) { ssl->ssl_errno = err; errno = EWOULDBLOCK; |