google / google/bumble

LeConnectionOrientedChannel enters invalid state in race condition

Open
#257 1 comment 0 reactions 1 assignee Claimed by @barbibulle View on GitHub
bug
Dominant language
Python
Stars
555
Forks
138
Avg merge
3d 15h
Merged PRs (30d)
9

Description

LeConnectionOrientedChannel has a race condition:
1. Call `disconnect` and enter state `DISCONNECTING`
2. Receive `on_disconnection_request` and enter state `DISCONNECTED`
3. Receive `on_disconnection_response` and see that state is not `DISCONNECTING`, log invalid state and return

Not sure what the best solution is here, but it seems valid (though unlikely) that one might receive a disconnection request before `disconnect` is done processing.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.