Skip to content

fix(cable): GetInfo timing out before BLE handshake completes#226

Merged
AlfioEmanueleFresta merged 1 commit into
masterfrom
fix/cable-getinfo-timeout-225
May 26, 2026
Merged

fix(cable): GetInfo timing out before BLE handshake completes#226
AlfioEmanueleFresta merged 1 commit into
masterfrom
fix/cable-getinfo-timeout-225

Conversation

@AlfioEmanueleFresta
Copy link
Copy Markdown
Member

Hybrid currently fails immediately with Transport(Timeout) (issue #225) because the protocol layer wraps each CTAP2 exchange in a 250ms wall-clock timeout, but the cable transport legitimately blocks for the BLE handshake before that timeout window even applies.

Removing the outer wrap is safe. HID already enforces its wall-clock deadline inside its own receive path (the original motivation for the wrap), and the per-leg send and receive timeouts on every transport are unchanged. The change restores the pre-regression shape of the protocol layer and adds a unit test that pins the behaviour by sleeping the mock channel's send past the GetInfo timeout and asserting the call still reaches the response.

Fixes #225

@AlfioEmanueleFresta AlfioEmanueleFresta marked this pull request as ready for review May 26, 2026 19:01
@AlfioEmanueleFresta AlfioEmanueleFresta merged commit b3b9b1c into master May 26, 2026
4 checks passed
@AlfioEmanueleFresta AlfioEmanueleFresta deleted the fix/cable-getinfo-timeout-225 branch May 26, 2026 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hybrid causes immediate timeout

1 participant