Commit ef7768e
committed
fix: sequential port probes and corrected test for non-required port overflow
- backendPort.ts: Replace concurrent Promise.all host probes with sequential
loop to prevent EADDRINUSE self-interference when overlapping addresses
(e.g. 127.0.0.1 and 0.0.0.0) bind to the same port simultaneously.
- dev-runner.test.ts: Fix 'allows offsets where only non-required ports exceed
max' test to actually exercise the edge case with the new BASE_SERVER_PORT.
Use offset 51763 with requireServerPort=false/requireWebPort=true so the
server port (65536) exceeds MAX_PORT while the web port (57496) stays in range.1 parent 1213650 commit ef7768e
2 files changed
+12
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
65 | 69 | | |
66 | 70 | | |
67 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
249 | | - | |
250 | | - | |
251 | | - | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
255 | | - | |
| 255 | + | |
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
| |||
0 commit comments