improvement: define websocket send queue (unlimited->1024)

This commit is contained in:
Greg Heartsfield 2023-01-02 15:39:28 -06:00
parent 14fe9f9ee1
commit d929ae2752

View File

@ -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()