node/lib/internal/cluster
Ouyang Yadong 8e3f606779 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: Antoine du Hamel <duhamelantoine1995@gmail.com>
2021-01-11 11:26:46 +01:00
..
child.js cluster: fix edge cases that throw ERR_INTERNAL_ASSERTION 2021-01-11 11:26:46 +01:00
primary.js lib: refactor to use mapping in cluster master 2021-01-10 12:50:56 +01:00
round_robin_handle.js cluster: refactor to use more primordials 2020-11-13 23:35:43 +00:00
shared_handle.js cluster: refactor to use more primordials 2020-11-13 23:35:43 +00:00
utils.js cluster: refactor to use more primordials 2020-11-13 23:35:43 +00:00
worker.js lib,src: update cluster to use Parent 2021-01-05 15:41:45 -05:00