You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 7, 2020. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 7, 2020. It is now read-only.
net.js:1440
this._handle.unref();
^
TypeError: undefined is not a function
at Server.unref (net.js:1440:18)
at Server.<anonymous> (/home/kyrios.li/test.js:7:8)
at Server.g (events.js:199:16)
at Server.emit (events.js:129:20)
at net.js:1171:12
at process._tickCallback (node.js:355:11)
and the same code is ok when NODE_CLUSTER_SCHED_POLICY is set to none. So I thought maybe it is a problem with RoundRobin?
but the child process is not exiting because there is internal message listeners. So Making unref work well will not make a change.
But I think we should at least avoid the error to be thrown, maybe a patch to the net module that ignores the unref call when cluster.isSlave is true will do?
Activity
kyriosli commentedon Jul 30, 2015
I simplified the code to to the following:
but the child process is not exiting because there is internal message listeners. So Making
unrefwork well will not make a change.But I think we should at least avoid the error to be thrown, maybe a patch to the
netmodule that ignores theunrefcall whencluster.isSlaveis true will do?bnoordhuis commentedon Jul 30, 2015
nodejs/node#2274
cluster: add handle ref/unref stubs in rr mode
bnoordhuis commentedon Jul 30, 2015
Fixed by nodejs/node@fa98b97.