Skip to content

Instantly share code, notes, and snippets.

@johnmccalla
Created April 5, 2011 14:55
Show Gist options
  • Save johnmccalla/903758 to your computer and use it in GitHub Desktop.
Save johnmccalla/903758 to your computer and use it in GitHub Desktop.
// 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([
80,
443
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment