diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2024-10-19 10:25:02 +0200 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2024-11-12 17:19:39 +0100 |
commit | 3114bda4e1ee88f04f55451697f24c9ee79be54f (patch) | |
tree | b6a14ee92e46a22438f12d2a13b3bf4b29bc7741 /modules/websocket/websocket_peer.h | |
parent | caff0ff591ed63234474c46a6fd868661aa8ea01 (diff) | |
download | redot-engine-3114bda4e1ee88f04f55451697f24c9ee79be54f.tar.gz |
[WS] Implement wslay unbuffered message parsing
Ensure we never read more than we can store during poll.
Raise default max packets to 4096 to maintain the same performance for
the first 2048 packets.
Diffstat (limited to 'modules/websocket/websocket_peer.h')
-rw-r--r-- | modules/websocket/websocket_peer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/websocket/websocket_peer.h b/modules/websocket/websocket_peer.h index 3696e787e1..4854122471 100644 --- a/modules/websocket/websocket_peer.h +++ b/modules/websocket/websocket_peer.h @@ -71,7 +71,7 @@ protected: int outbound_buffer_size = DEFAULT_BUFFER_SIZE; int inbound_buffer_size = DEFAULT_BUFFER_SIZE; - int max_queued_packets = 2048; + int max_queued_packets = 4096; uint64_t heartbeat_interval_msec = 0; public: |