From c3233867c851dc23795a9f72518f4018bb9af6fb Mon Sep 17 00:00:00 2001 From: Karl Seguin Date: Fri, 5 Jun 2026 18:13:24 +0800 Subject: [PATCH] Extend the TCP read/write timeout from 2 second to 10. This limit isn't about correctness,it's just about making sure a test doesn't block forever. 2 seconds does seem like plenty of time, but I'm thinking it's a slow/busy CI. If it still happens after this bump, could mean there's an actual issue. --- src/Server.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Server.zig b/src/Server.zig index 50c55195..43b1a2bc 100644 --- a/src/Server.zig +++ b/src/Server.zig @@ -624,7 +624,7 @@ fn createTestClient() !TestClient { const stream = try std.net.tcpConnectToAddress(address); const timeout = std.mem.toBytes(posix.timeval{ - .sec = 2, + .sec = 10, .usec = 0, }); try posix.setsockopt(stream.handle, posix.SOL.SOCKET, posix.SO.RCVTIMEO, &timeout);