From 9a8f666975ce3627307bc21190bef765887f3531 Mon Sep 17 00:00:00 2001 From: Miguel Palhas Date: Wed, 2 Sep 2026 18:23:28 +0100 Subject: [PATCH] perf(maestro): disable Nagle on the daemon listener MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Keystrokes and PTY echo are tiny frames. With Nagle on, each can sit up to 40ms waiting for an ACK before the kernel sends it — invisible over loopback, plainly felt from another device on the LAN. Co-Authored-By: Claude Opus 5 (1M context) --- crates/maestro-daemon/src/cli.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/maestro-daemon/src/cli.rs b/crates/maestro-daemon/src/cli.rs index 63c6fb1..d5bcf3c 100644 --- a/crates/maestro-daemon/src/cli.rs +++ b/crates/maestro-daemon/src/cli.rs @@ -114,6 +114,7 @@ async fn run(config_override: Option) -> Result<(), Box> { }; axum::serve(listener, router) + .tcp_nodelay(true) .with_graceful_shutdown(shutdown) .await?; Ok(())