Update SSLWrapper's 'append'. (#1765)

This commit is contained in:
xiehan
2025-07-30 19:43:13 +08:00
committed by GitHub
parent a3d46ed828
commit 3859d0698e
+5 -8
View File
@@ -203,16 +203,13 @@ int SSLWrapper::append_message()
} while (nleft > 0);
}
if (ret < 0)
ret = SSL_get_error(this->ssl, ret);
if (ret != SSL_ERROR_WANT_READ)
{
ret = SSL_get_error(this->ssl, ret);
if (ret != SSL_ERROR_WANT_READ)
{
if (ret != SSL_ERROR_SYSCALL)
errno = -ret;
if (ret != SSL_ERROR_SYSCALL)
errno = -ret;
return -1;
}
return -1;
}
return 0;