From 0e831dbe001277c973066471eb84bf58948ed582 Mon Sep 17 00:00:00 2001 From: Snowiiii Date: Wed, 7 Aug 2024 00:01:04 +0200 Subject: [PATCH] connection: enable tcp nodealy --- pumpkin/src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pumpkin/src/main.rs b/pumpkin/src/main.rs index 967e13622..92fe79bb8 100644 --- a/pumpkin/src/main.rs +++ b/pumpkin/src/main.rs @@ -111,6 +111,9 @@ fn main() -> io::Result<()> { return Err(e); } }; + if let Err(e) = connection.set_nodelay(true) { + log::warn!("failed to set TCP_NODELAY {e}"); + } log::info!("Accepted connection from: {}", address);