mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
openssl: treat SYSCALL at connect as always fatal
This commit is contained in:
parent
0c40f0b7bd
commit
3eae5b1363
2 changed files with 4 additions and 1 deletions
|
@ -212,6 +212,9 @@ lws_tls_client_connect(struct lws *wsi)
|
|||
|
||||
m = lws_ssl_get_error(wsi, n);
|
||||
|
||||
if (m == SSL_ERROR_SYSCALL)
|
||||
return LWS_SSL_CAPABLE_ERROR;
|
||||
|
||||
if (m == SSL_ERROR_WANT_READ || SSL_want_read(wsi->ssl))
|
||||
return LWS_SSL_CAPABLE_MORE_SERVICE_READ;
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ int lws_ssl_get_error(struct lws *wsi, int n)
|
|||
return 99;
|
||||
|
||||
m = SSL_get_error(wsi->ssl, n);
|
||||
lwsl_debug("%s: %p %d -> %d\n", __func__, wsi->ssl, n, m);
|
||||
lwsl_debug("%s: %p %d -> %d (errno %d)\n", __func__, wsi->ssl, n, m, errno);
|
||||
|
||||
return m;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue