Created
April 5, 2011 14:55
-
-
Save johnmccalla/903758 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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