Skip to content

wip: multiplexed usb/tcp devices#184

Draft
cocool97 wants to merge 2 commits intomainfrom
feat/multiplexed-usb-tcp-devices
Draft

wip: multiplexed usb/tcp devices#184
cocool97 wants to merge 2 commits intomainfrom
feat/multiplexed-usb-tcp-devices

Conversation

@cocool97
Copy link
Copy Markdown
Owner

No description provided.

Copy link
Copy Markdown

@salvatorebenedetto salvatorebenedetto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would be easier to review if split into smaller commits or separate PRs. Right now it combines: (1) the multiplexer/session refactor, (2) timeout behavior changes, and (3) dependency bumps.

More importantly, I found two blocking issues:

  1. TLS/STLS path never calls set_authenticated() after upgrade, so subsequent messages are routed to the wrong queue and the first command can hang or time out.
  2. The multiplexer thread lifecycle is unsafe: Drop can hang forever waiting on join(), and cloned sessions can also prevent cleanup.

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.

2 participants