Skip to content

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

@anarthal

Description

@anarthal

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions