From d929ae275261d70471ed788419a8fba8fea90e30 Mon Sep 17 00:00:00 2001 From: Greg Heartsfield Date: Mon, 2 Jan 2023 15:39:28 -0600 Subject: [PATCH] improvement: define websocket send queue (unlimited->1024) --- src/server.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/server.rs b/src/server.rs index bf77d94..fdcc7eb 100644 --- a/src/server.rs +++ b/src/server.rs @@ -79,6 +79,7 @@ async fn handle_web_request( Ok(upgraded) => { // set WebSocket configuration options let config = WebSocketConfig { + max_send_queue: Some(1024), max_message_size: settings.limits.max_ws_message_bytes, max_frame_size: settings.limits.max_ws_frame_bytes, ..Default::default()