WebSockets: fix timeout when sending HTTP body

This commit is contained in:
Luciano Iam
2020-04-10 08:23:33 +02:00
committed by Robin Gareus
parent f18a7e3fc3
commit 731ea79028

View File

@@ -398,7 +398,9 @@ WebsocketsServer::send_index_body (Client wsi)
return 1;
}
if (lws_http_transaction_completed (wsi)) {
/* lws_http_transaction_completed() returns 1 if the HTTP connection must close now
Returns 0 and resets connection to wait for new HTTP header / transaction if possible */
if (lws_http_transaction_completed (wsi) != 1) {
return 1;
}