Skip to content

cluster: fix inspector port assignment

Make sure that inspector ports in cluster are inside the valid range: [1024, 65535]. Fix flaky test-inspector-port-zero-cluster.

Fixes: https://github.com/nodejs/node/issues/18303

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)

Merge request reports

Loading