Skip to content

Instantly share code, notes, and snippets.

@samyakbhuta
Created August 11, 2011 07:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samyakbhuta/1139060 to your computer and use it in GitHub Desktop.
Save samyakbhuta/1139060 to your computer and use it in GitHub Desktop.
A very basic cluster.js example, giving "Error in unix_dgram bind of .." and "Error: stream not writable"
var http = require("http");
var cluster = require("cluster");
anHTTPServer = http.createServer(function (req,res){
res.write("Hello");
res.end();
});
//anHTTPServer.listen(3000);
cluster(anHTTPServer)
.use(cluster.logger('logs'))
.use(cluster.stats())
.use(cluster.pidfiles('pids'))
.use(cluster.cli())
.use(cluster.repl(8888))
.listen(3000);
@tj
Copy link

tj commented Aug 11, 2011

so after those dirs were created you still get the unix_dgram bind failure right?

@samyakbhuta
Copy link
Author

samyakbhuta commented Aug 11, 2011 via email

@tj
Copy link

tj commented Aug 11, 2011

weird!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment