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

Ensure the fd will be release completely #226

Merged
merged 1 commit into from
Apr 29, 2024

Conversation

jokemanfire
Copy link
Contributor

Resolve the 'fd' is not release completely

src/sync/client.rs Outdated Show resolved Hide resolved
src/sync/client.rs Outdated Show resolved Hide resolved
@Tim-Zhang
Copy link
Member

@jokemanfire Good catch, thanks and just left a format recommendation.

This problem is caused by the reference count not being able to return to 0 properly.

Signed-off-by: jokemanfire <[email protected]>
Copy link
Member

@Tim-Zhang Tim-Zhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Tim-Zhang Tim-Zhang merged commit 9d7f90f into containerd:master Apr 29, 2024
10 of 11 checks passed
@Tim-Zhang Tim-Zhang linked an issue Sep 24, 2024 that may be closed by this pull request
Tim-Zhang added a commit to Tim-Zhang/ttrpc-rust that referenced this pull request Sep 24, 2024
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]>
jokemanfire pushed a commit to jokemanfire/ttrpc-rust that referenced this pull request Sep 27, 2024
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]>
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 ttrpc client lifetime is so long for Main thread
3 participants