diff --git a/rust_backend/crates/extensions/tests/optimization_chunked.rs b/rust_backend/crates/extensions/tests/optimization_chunked.rs index 50cc6424..83910266 100644 --- a/rust_backend/crates/extensions/tests/optimization_chunked.rs +++ b/rust_backend/crates/extensions/tests/optimization_chunked.rs @@ -33,6 +33,9 @@ fn respond(stream: &mut TcpStream, head: &str, body: &[u8]) -> std::io::Result<( /// Serves byte ranges over keep-alive HTTP/1.1. `/busy` answers the first /// ranged chunk (after the two-byte probe) with a small retryable 503 body. fn connection(mut stream: TcpStream, stop: &AtomicBool, busy: &AtomicBool) { + // Keep the fixture's 3 ms body delay independent of Nagle/delayed ACK, + // which can exceed the client's bounded drain on Linux runners. + stream.set_nodelay(true).unwrap(); stream .set_read_timeout(Some(Duration::from_millis(25))) .unwrap();