From 3e305ea036eaebd7de4747ba5abbbaabd2cdb699 Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Mon, 8 Jul 2019 19:14:31 +0200 Subject: [PATCH] Fix WebSocketClient consuming data during hanshake Was missing a break of the while loop on connection. This potentially caused early data frames to be trashed. --- modules/websocket/wsl_client.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/websocket/wsl_client.cpp b/modules/websocket/wsl_client.cpp index b2d865a58f..86374e8f80 100644 --- a/modules/websocket/wsl_client.cpp +++ b/modules/websocket/wsl_client.cpp @@ -92,6 +92,7 @@ void WSLClient::_do_handshake() { data->id = 1; _peer->make_context(data, _in_buf_size, _in_pkt_size, _out_buf_size, _out_pkt_size); _on_connect(protocol); + break; } _resp_pos += 1; }