diff options
author | Luciano Iam <lucianito@gmail.com> | 2020-04-10 08:27:00 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-04-11 22:30:40 +0200 |
commit | ed427e5704668436d245bba8e7db56fb18d9b64e (patch) | |
tree | d23f0a70ddb13fb338330240cdf3a59ef7a14c5a /libs | |
parent | c477a81a7c33d840ca18d4ce20ee041d1f165c89 (diff) |
WebSockets: add useful comment on lws_write()
Diffstat (limited to 'libs')
-rw-r--r-- | libs/surfaces/websockets/server.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/surfaces/websockets/server.cc b/libs/surfaces/websockets/server.cc index 79f0c89b85..bc89168702 100644 --- a/libs/surfaces/websockets/server.cc +++ b/libs/surfaces/websockets/server.cc @@ -397,6 +397,7 @@ WebsocketsServer::send_index_body (Client wsi) #endif int len = strlen (body); + /* lws_write() expects a writable buffer */ if (lws_write (wsi, reinterpret_cast<unsigned char*> (body), len, LWS_WRITE_HTTP) != len) { return 1; } |