Skip to content

Commit

Permalink
l2cap: refactor server side to allow deferred accept
Browse files Browse the repository at this point in the history
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
uael committed Nov 7, 2023
1 parent 2cd4f84 commit ee494a6
Showing 1 changed file with 375 additions and 195 deletions.
Loading

0 comments on commit ee494a6

Please sign in to comment.