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

Race condition in per-operation cancellation in connection/any_connection #199

Open
anarthal opened this issue Dec 20, 2023 · 0 comments
Open
Labels
bug Something isn't working

Comments

@anarthal
Copy link
Collaborator

This is a rare case of a race condition that can happen during the execution of any connection function. If the cancellation signal is emitted while the current async op is complete, but the handler hasn't been called yet (is queued), the cancellation has no effect and the operation continues.

This can be fixed by checking the composed op's cancellation state in async_run_algo_impl.

@anarthal anarthal added the bug Something isn't working label Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant