diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-08-01 11:12:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-01 11:12:15 +0200 |
commit | 8465ecc3ae5e33bf2aea04dd1db2d27455c0504f (patch) | |
tree | b9f2902bfe322bd1c68637a6f580001d0cf1a147 /modules/websocket/emws_client.cpp | |
parent | 56b137afb79017d520278613be39202145fc6798 (diff) | |
parent | de02cf44ae4db141b42889e9f390e142baaa98d6 (diff) |
Merge pull request #51036 from winterpixelgames/master-ws-fix
WebsocketPeer outbound buffer fixes and buffer size query
Diffstat (limited to 'modules/websocket/emws_client.cpp')
-rw-r--r-- | modules/websocket/emws_client.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/websocket/emws_client.cpp b/modules/websocket/emws_client.cpp index d3d0066c12..5cd94e978f 100644 --- a/modules/websocket/emws_client.cpp +++ b/modules/websocket/emws_client.cpp @@ -95,7 +95,7 @@ Error EMWSClient::connect_to_host(String p_host, String p_path, uint16_t p_port, return FAILED; } - static_cast<Ref<EMWSPeer>>(_peer)->set_sock(_js_id, _in_buf_size, _in_pkt_size); + static_cast<Ref<EMWSPeer>>(_peer)->set_sock(_js_id, _in_buf_size, _in_pkt_size, _out_buf_size); return OK; } @@ -136,6 +136,7 @@ int EMWSClient::get_max_packet_size() const { Error EMWSClient::set_buffers(int p_in_buffer, int p_in_packets, int p_out_buffer, int p_out_packets) { _in_buf_size = nearest_shift(p_in_buffer - 1) + 10; _in_pkt_size = nearest_shift(p_in_packets - 1); + _out_buf_size = nearest_shift(p_out_buffer - 1) + 10; return OK; } |