From 7e4f4caeda0a52c90894a31eb5efecf780aa9e8c Mon Sep 17 00:00:00 2001 From: modeco80 Date: Mon, 30 Sep 2024 06:53:52 -0400 Subject: [PATCH] disable Nagle's algorithm --- src/shotter.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shotter.rs b/src/shotter.rs index 1e8559c..8acf690 100644 --- a/src/shotter.rs +++ b/src/shotter.rs @@ -30,7 +30,7 @@ pub async fn take_one_screenshot( map.insert("Origin", origin.parse().unwrap()); map.insert("Sec-WebSocket-Protocol", "guacamole".parse().unwrap()); - match tokio_tungstenite::connect_async(req).await { + match tokio_tungstenite::connect_async_with_config(req, None, true).await { Ok(ws) => { tracing::trace!("connected to CollabVM server");