Skip to content

Commit c80a540

Browse files
committed
feat: lower fifo timeout from 5s to 2s
1 parent 85ff765 commit c80a540

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

dist/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2637,7 +2637,7 @@ static nav__1126_39 fifo_UnixPipe_Reader_waitForResponse__1126(struct fifo_UnixP
26372637
t3 = t5;
26382638
goto zig_block_0;
26392639
}
2640-
t3 = UINT64_C(5000000000);
2640+
t3 = UINT64_C(2000000000);
26412641
goto zig_block_0;
26422642

26432643
zig_block_0:;

src/fifo.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ pub const UnixPipe = struct {
6767

6868
pub fn waitForResponse(self: *Reader, timeout_ns: ?u64) !Command {
6969
const start = std.time.nanoTimestamp();
70-
const timeout = timeout_ns orelse std.time.ns_per_s * 5; // Default 5 second timeout
70+
const timeout = timeout_ns orelse std.time.ns_per_s * 2; // Default 2 second timeout
7171

7272
while (true) {
7373
const elapsed = @as(u64, @intCast(std.time.nanoTimestamp() - start));

0 commit comments

Comments
 (0)