diff options
author | Luciano Iam <lucianito@gmail.com> | 2020-04-10 08:43:06 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-04-11 22:30:40 +0200 |
commit | 420137ea9d36be85f73a42f1a551df98930911af (patch) | |
tree | 374dd04652b39dc197e17344f5eb6be7e650edd3 /libs/surfaces/websockets/server.cc | |
parent | d219cde926647fbee80b4139e9e982dad9a70b23 (diff) |
WebSockets: always return -1 from send_index_body() unless there is a write error
Diffstat (limited to 'libs/surfaces/websockets/server.cc')
-rw-r--r-- | libs/surfaces/websockets/server.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/surfaces/websockets/server.cc b/libs/surfaces/websockets/server.cc index bc89168702..1fb0fbee74 100644 --- a/libs/surfaces/websockets/server.cc +++ b/libs/surfaces/websockets/server.cc @@ -405,7 +405,7 @@ WebsocketsServer::send_index_body (Client 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; + return -1; } return -1; // end connection |