mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-30 00:00:16 +01:00
fix close packet index coding
https://github.com/warmcat/libwebsockets/issues/792
This commit is contained in:
parent
f9f5a57607
commit
f2c6e48eb8
1 changed files with 1 additions and 1 deletions
|
@ -349,7 +349,7 @@ lws_close_free_wsi(struct lws *wsi, enum lws_close_status reason)
|
||||||
if (!wsi->u.ws.close_in_ping_buffer_len) {
|
if (!wsi->u.ws.close_in_ping_buffer_len) {
|
||||||
wsi->u.ws.close_in_ping_buffer_len = 2;
|
wsi->u.ws.close_in_ping_buffer_len = 2;
|
||||||
wsi->u.ws.ping_payload_buf[LWS_PRE] =
|
wsi->u.ws.ping_payload_buf[LWS_PRE] =
|
||||||
(reason >> 16) & 0xff;
|
(reason >> 8) & 0xff;
|
||||||
wsi->u.ws.ping_payload_buf[LWS_PRE + 1] =
|
wsi->u.ws.ping_payload_buf[LWS_PRE + 1] =
|
||||||
reason & 0xff;
|
reason & 0xff;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue