mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
non ssl on ssl port zero recv ambiguous
Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
cc64fb535b
commit
79a3c5d425
1 changed files with 6 additions and 2 deletions
|
@ -633,8 +633,12 @@ lws_server_socket_service_ssl(struct libwebsocket_context *context,
|
|||
wsi->ssl = NULL;
|
||||
goto accepted;
|
||||
}
|
||||
if (!n) /* connection is gone */
|
||||
goto fail;
|
||||
if (!n) /*
|
||||
* connection is gone, or nothing to read
|
||||
* if it's gone, we will timeout on
|
||||
* PENDING_TIMEOUT_SSL_ACCEPT
|
||||
*/
|
||||
break;
|
||||
if (n < 0 && (LWS_ERRNO == LWS_EAGAIN ||
|
||||
LWS_ERRNO == LWS_EWOULDBLOCK)) {
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue