Skip to content

Comments

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

Merged
wllenyj merged 1 commit intocontainerd:masterfrom
Tim-Zhang:fix-infinite-accept-loop-master
Jan 13, 2025
Merged

sync-server: Fix infinite loop caused by accept error#271
wllenyj merged 1 commit intocontainerd:masterfrom
Tim-Zhang:fix-infinite-accept-loop-master

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

@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 <tim@hyper.sh>
@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
Tim-Zhang added a commit to Tim-Zhang/ttrpc-rust that referenced this pull request Jan 15, 2025
@Tim-Zhang Tim-Zhang mentioned this pull request Jan 15, 2025
KarstenB pushed a commit to KarstenB/ttrpc-rust that referenced this pull request May 1, 2025
…loop-master

sync-server: Fix infinite loop caused by accept error
KarstenB pushed a commit to KarstenB/ttrpc-rust that referenced this pull request May 1, 2025
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