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
net.js:1490
throw new Error('Invalid listen argument: ' + util.inspect(options));
^
Error: Invalid listen argument: { port: null }
at Server.listen (net.js:1490:9)
at new RoundRobinHandle (internal/cluster/round_robin_handle.js:23:17)
at queryServer (internal/cluster/master.js:288:29)
at Worker.onmessage (internal/cluster/master.js:244:5)
at ChildProcess.onInternalMessage (internal/cluster/utils.js:42:8)
at emitTwo (events.js:130:20)
at ChildProcess.emit (events.js:213:7)
at emit (internal/child_process.js:774:12)
at _combinedTickCallback (internal/process/next_tick.js:141:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
The text was updated successfully, but these errors were encountered:
ponury-kostek
changed the title
passing http server to worker
Can't passing http server to worker
Sep 22, 2017
ponury-kostek
changed the title
Can't passing http server to worker
cluster: Can't passing http server to worker
Sep 22, 2017
I can reproduce the issue with 8.5.0 and master. After applying the changes in #14221, your provided code runs again.
EDIT: It's also worth mentioning that you're sending an HTTP server to the child process. That will come through on the child side as a net server, not HTTP server.
Passing http server instance to worker not working anymore on node v8.5.0, but works on v6.11.3
main.js
subprocess.js
The text was updated successfully, but these errors were encountered: