Avoid occasional response delay when handling HTTP in the websockets surface

This commit is contained in:
Luciano Iam 2020-02-26 23:30:45 +01:00 committed by Robin Gareus
parent 0921cf8939
commit ef512d412d
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -398,6 +398,7 @@ WebsocketsServer::lws_callback (struct lws* wsi, enum lws_callback_reasons reaso
case LWS_CALLBACK_HTTP:
server->reject_http_client (wsi);
return 1;
break;
case LWS_CALLBACK_FILTER_NETWORK_CONNECTION: