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

fix(net,iour,poll): fix accept leak #315

Merged
merged 1 commit into from
Nov 3, 2024

Conversation

Berrysoft
Copy link
Member

On Unix, the accept operation may be cancelled after completed. In that case the accepted fd is leaked and the client may stuck. This PR fixes the issue by temporarily storing the fd in the op.

The issue doesn't affect IOCP.

@Berrysoft Berrysoft added bug Something isn't working driver: io-uring About the io-uring driver driver: polling About the polling driver driver: fusion About the fusion driver package: net Related to compio-net package: driver Related to compio-driver labels Nov 3, 2024
@Berrysoft Berrysoft requested a review from George-Miao November 3, 2024 15:50
@Berrysoft Berrysoft self-assigned this Nov 3, 2024
Copy link
Member

@George-Miao George-Miao left a comment

Choose a reason for hiding this comment

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

LGTM

@Berrysoft Berrysoft merged commit 40fa5f7 into compio-rs:master Nov 3, 2024
42 checks passed
@Berrysoft Berrysoft deleted the fix/accept-leak branch November 3, 2024 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working driver: fusion About the fusion driver driver: io-uring About the io-uring driver driver: polling About the polling driver package: driver Related to compio-driver package: net Related to compio-net
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants