diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2018-08-06 03:40:26 +0200 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2018-08-06 03:47:02 +0200 |
commit | 6a57f295730f1ab594e905fccba5a05578a2f5a0 (patch) | |
tree | 706ddc7ded9c77fe26dfaf06326b421c86697ae8 /modules/websocket/lws_server.cpp | |
parent | b5a20d21f2e20a4c2001909574094db10abba06b (diff) |
Fix WebSocket crash due to non PDO init.
Move RingBuffer (and few related vars) to LWSPeer.
Diffstat (limited to 'modules/websocket/lws_server.cpp')
-rw-r--r-- | modules/websocket/lws_server.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/modules/websocket/lws_server.cpp b/modules/websocket/lws_server.cpp index 8d13dc7a98..bb724bce9c 100644 --- a/modules/websocket/lws_server.cpp +++ b/modules/websocket/lws_server.cpp @@ -92,11 +92,6 @@ int LWSServer::_handle_cb(struct lws *wsi, enum lws_callback_reasons reason, voi _peer_map[id] = peer; peer_data->peer_id = id; - peer_data->in_size = 0; - peer_data->in_count = 0; - peer_data->out_count = 0; - peer_data->rbw.resize(16); - peer_data->rbr.resize(16); peer_data->force_close = false; _on_connect(id, lws_get_protocol(wsi)->name); @@ -111,10 +106,6 @@ int LWSServer::_handle_cb(struct lws *wsi, enum lws_callback_reasons reason, voi _peer_map[id]->close(); _peer_map.erase(id); } - peer_data->in_count = 0; - peer_data->out_count = 0; - peer_data->rbr.resize(0); - peer_data->rbw.resize(0); _on_disconnect(id); return 0; // we can end here } |