mirror of
https://github.com/sogou/workflow.git
synced 2026-02-08 01:33:17 +08:00
Set errno to EAGAIN when push on SSL connection blocked. (#1754)
This commit is contained in:
@@ -192,7 +192,9 @@ int CommMessageIn::feedback(const void *buf, size_t size)
|
||||
if (ret <= 0)
|
||||
{
|
||||
ret = SSL_get_error(entry->ssl, ret);
|
||||
if (ret != SSL_ERROR_SYSCALL)
|
||||
if (ret == SSL_ERROR_WANT_READ || ret == SSL_ERROR_WANT_WRITE)
|
||||
errno = EAGAIN;
|
||||
else if (ret != SSL_ERROR_SYSCALL)
|
||||
errno = -ret;
|
||||
|
||||
ret = -1;
|
||||
|
||||
Reference in New Issue
Block a user