Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
l2cap: refactor server side to allow deferred accept
In order to avoid any breaking changes this re-impl current APIs with the exact same behavior. The previous impl was preventing one to defer the response to an l2cap channel connection request, both for BR/EDR basic channels and LE credit based ones. This commit change this to spawn a task on every channel incoming connection request, then all registered listeners are given a chance to accept it through a `asyncio.Future`. After a bit of delay, if none had accepted it, the connection is automatically rejected.
- Loading branch information