[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.
This commit is contained in:
Fabio Alessandrelli
2024-10-19 10:25:02 +02:00
parent caff0ff591
commit 3114bda4e1
6 changed files with 72 additions and 17 deletions

View File

@@ -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: