mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
windows: treat syscall and errno 0 as WANT_READ
https://libwebsockets.org/pipermail/libwebsockets/2019-February/007800.html
This commit is contained in:
parent
419f02ef67
commit
e4a65c948e
1 changed files with 5 additions and 0 deletions
|
@ -319,6 +319,11 @@ lws_tls_server_accept(struct lws *wsi)
|
|||
if (m == SSL_ERROR_SYSCALL && errno == 11)
|
||||
return LWS_SSL_CAPABLE_MORE_SERVICE_READ;
|
||||
|
||||
#if defined(WIN32)
|
||||
if (m == SSL_ERROR_SYSCALL && errno == 0)
|
||||
return LWS_SSL_CAPABLE_MORE_SERVICE_READ;
|
||||
#endif
|
||||
|
||||
if (m == SSL_ERROR_SYSCALL || m == SSL_ERROR_SSL)
|
||||
return LWS_SSL_CAPABLE_ERROR;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue