LeConnectionOrientedChannel enters invalid state in race condition
Open
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
Assessment
This issue has not been assessed yet.