Skip to content

Commit dc6b697

Browse files
committed
Update timeout to infinite for poll of accept
It should be a mistake to modify it from -1 to 10 in the PR containerd#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]>
1 parent f681eb1 commit dc6b697

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/sync/sys/unix/net.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ impl PipeListener {
101101
libc::poll(
102102
pollers as *mut _ as *mut libc::pollfd,
103103
pollers.len() as _,
104-
POLL_MAX_TIME,
104+
-1,
105105
)
106106
};
107107

0 commit comments

Comments
 (0)