diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2018-12-26 17:51:12 +0100 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2018-12-26 17:51:12 +0100 |
commit | 77466285f260a84f6ca7299bc5de2bf35a076b90 (patch) | |
tree | 7c61eb74ea81531be1efb389616362e3914961c3 | |
parent | 10e9221c49eddc05cb36c0b582060cac9e4c8cef (diff) |
Fix HTML5 WebSocket client buffers size.
-rw-r--r-- | modules/websocket/emws_client.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/websocket/emws_client.cpp b/modules/websocket/emws_client.cpp index 82a577790e..522b810721 100644 --- a/modules/websocket/emws_client.cpp +++ b/modules/websocket/emws_client.cpp @@ -205,8 +205,8 @@ int EMWSClient::get_max_packet_size() const { } EMWSClient::EMWSClient() { - _in_buf_size = GLOBAL_GET(WSC_IN_BUF); - _in_pkt_size = GLOBAL_GET(WSC_IN_PKT); + _in_buf_size = nearest_shift((int)GLOBAL_GET(WSC_IN_BUF) - 1) + 10; + _in_pkt_size = nearest_shift((int)GLOBAL_GET(WSC_IN_PKT) - 1); _is_connecting = false; _peer = Ref<EMWSPeer>(memnew(EMWSPeer)); /* clang-format off */ |