Skip to content

Instantly share code, notes, and snippets.

// This is what I think I have to do now:
cluster(http.createServer(requestCallback)).listen(80);
cluster(https.createServer(credentials, requestCallback)).listen(443);
// The above creates 2 clusters (2 x NumProcessors processes). What I'd like to do is have every
// process do a listenFD on the two ports, so in Cluster, maybe express it something like:
cluster([
http.createServer(requestCallback),
https.createServer(credentials, requestCallback)
]).listen([