From 98aa4106837e549f0f1bbf89936c1f7836494d6f Mon Sep 17 00:00:00 2001 From: rustdesk Date: Mon, 24 Jan 2022 01:50:22 +0800 Subject: [PATCH] more set_nodelay --- src/rendezvous_mediator.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rendezvous_mediator.rs b/src/rendezvous_mediator.rs index c3a3c920d..0cf33e0a3 100644 --- a/src/rendezvous_mediator.rs +++ b/src/rendezvous_mediator.rs @@ -482,6 +482,7 @@ async fn direct_server(server: ServerPtr) -> ResultType<()> { if Config::get_option("direct-server").is_empty() { continue; } + stream.set_nodelay(true).ok(); log::info!("direct access from {}", addr); let local_addr = stream.local_addr()?; let server = server.clone();