Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sync-server: Fix infinite loop caused by accept error #271

Merged

Conversation

Tim-Zhang
Copy link
Member

Since poll is level-triggered, an uncorrected error can lead to an infinite loop, so we sleep for a while and wait for the error to be corrected.

Fixes: #270

src/sync/server.rs Outdated Show resolved Hide resolved
@Tim-Zhang Tim-Zhang force-pushed the fix-infinite-accept-loop-master branch 2 times, most recently from a845820 to 47f828a Compare January 9, 2025 07:00
Also Add the method set_accept_retry_interval.

Since poll is level-triggered, an uncorrected error can lead to an infinite loop,
so we sleep for a while and wait for the error to be corrected.

Fixes: containerd#270

Signed-off-by: Tim Zhang <[email protected]>
@Tim-Zhang Tim-Zhang force-pushed the fix-infinite-accept-loop-master branch from 47f828a to c351f0b Compare January 10, 2025 06:12
@Tim-Zhang Tim-Zhang requested a review from jsturtevant January 10, 2025 06:59
@wllenyj wllenyj merged commit 199603d into containerd:master Jan 13, 2025
10 checks passed
@Tim-Zhang Tim-Zhang deleted the fix-infinite-accept-loop-master branch January 13, 2025 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The error message: "failed to accept error EMFILE" filled up the hard disk.
5 participants