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:
swaits committed 2026-04-11 02:48:04 -06:00
1 parent 7a9e67ac1c
commit c82c5a7e94
2 files changed
+49 -10

No files matched your search

+9
View File
@@ -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