From 85d1aa30d5f9a23485a94327915495cefd58130b Mon Sep 17 00:00:00 2001 From: Luciano Iam Date: Sat, 9 May 2020 11:59:17 +0200 Subject: [PATCH] WebSockets: comment out a lws_callback case that made clients hang --- libs/surfaces/websockets/server.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/surfaces/websockets/server.cc b/libs/surfaces/websockets/server.cc index 1f7bb2a32d..cdd5b005a8 100644 --- a/libs/surfaces/websockets/server.cc +++ b/libs/surfaces/websockets/server.cc @@ -537,7 +537,7 @@ WebsocketsServer::lws_callback (struct lws* wsi, enum lws_callback_reasons reaso rc = server->send_availsurf_body (wsi); break; - case LWS_CALLBACK_CLOSED_HTTP: + //case LWS_CALLBACK_CLOSED_HTTP: case LWS_CALLBACK_FILTER_NETWORK_CONNECTION: case LWS_CALLBACK_FILTER_PROTOCOL_CONNECTION: case LWS_CALLBACK_SERVER_NEW_CLIENT_INSTANTIATED: @@ -555,6 +555,7 @@ WebsocketsServer::lws_callback (struct lws* wsi, enum lws_callback_reasons reaso #endif #if LWS_LIBRARY_VERSION_MAJOR >= 4 case LWS_CALLBACK_HTTP_FILE_COMPLETION: + case LWS_CALLBACK_HTTP_DROP_PROTOCOL: #endif #if (LWS_LIBRARY_VERSION_MAJOR >= 4) || (LWS_LIBRARY_VERSION_MAJOR >= 3 && LWS_LIBRARY_VERSION_MINOR >= 1) case LWS_CALLBACK_HTTP_CONFIRM_UPGRADE: