Commit 8e3f6067 authored by Ouyang Yadong's avatar Ouyang Yadong Committed by Antoine du Hamel
Browse files

cluster: fix edge cases that throw ERR_INTERNAL_ASSERTION

Some cases use both `cluster` and `net`/`cluser` will throw
ERR_INTERNAL_ASSERTION when `listen`/`bind` to the port of `0`. This
PR maitains a separate map of the index to fix the issue. See the new
tests added for the detail cases.

PR-URL: https://github.com/nodejs/node/pull/36764


Reviewed-By: default avatarAntoine du Hamel <duhamelantoine1995@gmail.com>
parent 6b189870
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment