Merge pull request #2651 from lightpanda-io/extend_cdp_test_timeout

Extend the TCP read/write timeout from 2 second to 10.
This commit is contained in:
Karl Seguin
2026-06-06 07:20:09 +08:00
committed by GitHub

View File

@@ -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);