mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
fix server ping coming as client payload
Client does auto-service server's ping, but then it fell through and issued it as payload. This fixes that so there is no payload issued. Reported-by: Chee Wooi Saw <cheewooi@gtwholdings.com> Signed-off-by: Andy Green <andy@warmcat.com>
This commit is contained in:
parent
a41314f3bf
commit
3293c2a6f7
1 changed files with 1 additions and 0 deletions
|
@ -1183,6 +1183,7 @@ spill:
|
|||
n = libwebsocket_write(wsi, (unsigned char *)
|
||||
&wsi->rx_user_buffer[LWS_SEND_BUFFER_PRE_PADDING],
|
||||
wsi->rx_user_buffer_head, LWS_WRITE_PONG);
|
||||
handled = 1;
|
||||
break;
|
||||
|
||||
case LWS_WS_OPCODE_07__PONG:
|
||||
|
|
Loading…
Add table
Reference in a new issue