Commit a84caf7
fix(ipc): drop non-blocking accept busy-poll in listener loop
The IPC server set the listener to non-blocking and slept 100 ms between
WouldBlock errors. There is no shutdown signal feeding the loop, so the
non-blocking pattern only added up to ~100 ms of latency before each
accepted connection plus continuous busy-poll wakeups.
Switching to blocking accept removes the latency and the wakeups, and
restores deterministic ordering for the in-tree IPC integration tests
that previously flaked under cargo test parallelism (the listener could
be mid-sleep when a connection arrived, pushing command delivery past
the test's 2 s polling window).1 parent d0cbc1b commit a84caf7
1 file changed
Lines changed: 0 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | 35 | | |
41 | 36 | | |
42 | 37 | | |
| |||
79 | 74 | | |
80 | 75 | | |
81 | 76 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | 77 | | |
87 | 78 | | |
88 | 79 | | |
| |||
0 commit comments