node/lib/internal/cluster
Ouyang Yadong 54bd4ab855
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-12 07:11:36 -05:00
..
child.js cluster: fix edge cases that throw ERR_INTERNAL_ASSERTION 2021-01-12 07:11:36 -05:00
master.js lib: refactor to use mapping in cluster master 2021-01-12 07:10:56 -05:00
round_robin_handle.js cluster: refactor to use more primordials 2020-11-22 11:32:44 -08:00
shared_handle.js cluster: refactor to use more primordials 2020-11-22 11:32:44 -08:00
utils.js cluster: refactor to use more primordials 2020-11-22 11:32:44 -08:00
worker.js cluster: refactor to use more primordials 2020-11-22 11:32:44 -08:00