Skip to content

Commit

Permalink
Update timeout to infinite for poll of accept
Browse files Browse the repository at this point in the history
It should be a mistake to modify it from -1 to 10
in the PR #226
https://github.com/containerd/ttrpc-rust/pull/226/files#diff-e74ddb472174f24fb4713f5a2fe2d33bbc5db28ee2a5c7dad1ea9025b897e8a5R110

There already are monitor_fd to notify exit, so accept without timeout is safe.

Signed-off-by: Tim Zhang <[email protected]>
  • Loading branch information
Tim-Zhang committed Sep 24, 2024
1 parent f681eb1 commit dc6b697
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sync/sys/unix/net.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ impl PipeListener {
libc::poll(
pollers as *mut _ as *mut libc::pollfd,
pollers.len() as _,
POLL_MAX_TIME,
-1,
)
};

Expand Down

0 comments on commit dc6b697

Please sign in to comment.