Commit 6696c33
committed
fix: put the bun script's port range above every other dev script
The previous commit moved this script to base 9850 and called the bases
disjoint. They are not. A base only separates two files if the earlier
one's modulus window stops before the later one's base, and these windows
run well past: reload-retry reaches 9739, hot-reload 9949, extra-watch
9989, overlay-scope 9979. So 9850-9989 landed inside three of them, where
the old 9500-9739 had overlapped two. The change made the collision it
claimed to fix more likely, and narrowing the modulus to 140 also raised
the same-file rate the comment credited it with lowering.
9989 is the highest port any existing script reaches, so this takes
10000-10255, which cannot collide with any of the four for any pair of
pids, and restores a modulus at least as wide as the original for the
same-file case. The overlapping ranges among the other four are
pre-existing and left alone.1 parent 21dfc1d commit 6696c33
1 file changed
Lines changed: 13 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
42 | 49 | | |
43 | 50 | | |
44 | 51 | | |
| |||
0 commit comments