sync: fix the connection fd leak on the server side#301
Merged
teawater merged 2 commits intocontainerd:0.5.0from Jun 24, 2025
Merged
sync: fix the connection fd leak on the server side#301teawater merged 2 commits intocontainerd:0.5.0from
teawater merged 2 commits intocontainerd:0.5.0from
Conversation
We need to ensure that only when the connection is successfully inserted into the connections map can the handler send fd to notify the reaper to recycle the connection. Otherwise, the handler may have been executed and sent fd to notify the reaper to recycle the connection, and the connection has not been inserted into the map. Then the reaper cannot find the corresponding connection after receiving the fd, and loses the opportunity to recycle the connection, causing fd leakage; Signed-off-by: Fupan Li <fupan.lfp@antgroup.com>
Fix failure with deny workflow in CI. This requires bumping cargo-deny-action, which introduces a breaking change in the syntax of deny.toml Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
Tim-Zhang
approved these changes
Jun 24, 2025
teawater
approved these changes
Jun 24, 2025
Tim-Zhang
added a commit
to Tim-Zhang/ttrpc-rust
that referenced
this pull request
Jun 24, 2025
Changelog: - containerd#301 Signed-off-by: Tim Zhang <tim@hyper.sh>
Merged
Tim-Zhang
added a commit
to Tim-Zhang/ttrpc-rust
that referenced
this pull request
Jun 24, 2025
Changelog: - containerd#301 Signed-off-by: Tim Zhang <tim@hyper.sh>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We need to ensure that only when the connection is successfully inserted into the connections map can the handler send fd to notify the reaper to recycle the connection.
Otherwise, the handler may have been executed and sent fd to notify the reaper to recycle the connection, and the connection has not been inserted into the map. Then the reaper cannot find the corresponding connection after receiving the fd, and loses the opportunity to recycle the connection, causing fd leakage;