Commit 6ece2a0
cluster: rewrite debug ports consistently
When debug flags are passed to clustered applications, the debug
port is rewritten for each worker process to avoid collisions.
Prior to this commit, each debug flag would get a unique value.
This commit reworks the logic to assign the same port value to
all debug flags for a single worker.
PR-URL: #7050
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>1 parent 44228df commit 6ece2a0Copy full SHA for 6ece2a0
File tree
Expand file treeCollapse file tree
2 files changed
+11
-2
lines changedOpen diff view settings
Filter options
- lib
- test/parallel
Expand file treeCollapse file tree
2 files changed
+11
-2
lines changedOpen diff view settings
Collapse file
+6-2Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
286 | 286 | |
287 | 287 | |
288 | 288 | |
| 289 | + |
289 | 290 | |
290 | 291 | |
291 | 292 | |
| ||
294 | 295 | |
295 | 296 | |
296 | 297 | |
297 | | - |
298 | | - |
| 298 | + |
| 299 | + |
| 300 | + |
| 301 | + |
| 302 | + |
299 | 303 | |
300 | 304 | |
301 | 305 | |
|
Collapse file
test/parallel/test-cluster-debug-port.js
Copy file name to clipboardExpand all lines: test/parallel/test-cluster-debug-port.js+5Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
23 | 23 | |
24 | 24 | |
25 | 25 | |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
26 | 31 | |
27 | 32 | |
28 | 33 | |
|
0 commit comments