Skip to content

fix(cable): send shutdown and linger for linking data#276

Draft
AlfioEmanueleFresta wants to merge 1 commit into
masterfrom
fix/cable-shutdown-and-linger
Draft

fix(cable): send shutdown and linger for linking data#276
AlfioEmanueleFresta wants to merge 1 commit into
masterfrom
fix/cable-shutdown-and-linger

Conversation

@AlfioEmanueleFresta

Copy link
Copy Markdown
Member

On hybrid connections the client never sent a shutdown frame and tore the connection down immediately after the response, dropping any late linking update from the peer. This sends a shutdown on close and lingers briefly to capture a late update.

Part of #257.

close() now asks the connection loop to send a Shutdown control frame over
the encrypted channel and waits for it to terminate before the channel is
dropped. After a CTAP response the loop lingers briefly to capture a late
linking Update before sending Shutdown and tearing down.
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.

1 participant