Skip to content
Snippets Groups Projects
Commit 79a3c5d4 authored by Andy Green's avatar Andy Green
Browse files

non ssl on ssl port zero recv ambiguous

parent cc64fb53
No related branches found
No related tags found
No related merge requests found
......@@ -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)) {
/*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment