From 3293c2a6f702d3c0c0d1ea755787ff87320b9bf9 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Tue, 24 May 2011 09:34:50 +0100 Subject: [PATCH] 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 Signed-off-by: Andy Green --- lib/parsers.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/parsers.c b/lib/parsers.c index f67af4f..b4dc442 100644 --- a/lib/parsers.c +++ b/lib/parsers.c @@ -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: -- 2.7.4