WebSockets: fix timeout when sending HTTP body
This commit is contained in:
committed by
Robin Gareus
parent
f18a7e3fc3
commit
731ea79028
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user