fix: prevent client from stealing serial port when mux is restarting
Track mux usage with a module-level flag. Once a mux connection succeeds, all future connect() calls in the same process only try the mux. connect() blocks waiting for the socket to reappear; try_connect() raises immediately so callers can retry with backoff.
This commit is contained in:
2 files changed
+49
-10
No files matched your search
@@ -1,5 +1,14 @@
|
||||
# Changelog
|
||||
|
||||
## Unreleased
|
||||
|
||||
### Fixed
|
||||
|
||||
- Once a mux connection succeeds, all future `connect()` calls in the
|
||||
same process only try the mux (waiting for it to reappear if needed).
|
||||
`try_connect()` raises immediately so callers can retry with backoff.
|
||||
Prevents clients from stealing the serial port during mux restarts.
|
||||
|
||||
## 0.2.0 — 2026-04-08
|
||||
|
||||
### Features
|
||||
|
||||
Reference in new issue
Block a user