From 879e86b20efa693103ef09882f2663197fae550e Mon Sep 17 00:00:00 2001 From: zarzet <42882290+zarzet@users.noreply.github.com> Date: Sun, 11 Oct 2026 16:14:01 +0700 Subject: [PATCH] test(rust): remove TCP timing dependence from chunked fixture --- rust_backend/crates/extensions/tests/optimization_chunked.rs | 3 +++ 1 file changed, 3 insertions(+) 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();