fix: prevent client from stealing serial port when mux is restarting

Track mux usage with a static AtomicBool. 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() returns an error so callers can retry with backoff.
This commit is contained in:
swaits committed 2026-04-11 02:50:49 -06:00
1 parent 77addfa698
commit 055fc76b87
2 files changed
+71 -33

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. `connect()` blocks waiting for the socket to
reappear; `try_connect()` returns an error so callers can retry with backoff.
Prevents clients from stealing the serial port during mux restarts.
## 0.2.1 — 2026-04-07
### Fixed