wankdanker / node-discover

Automatic and decentralized discovery and monitoring of nodejs instances with built in support for a variable number of master processes, service advertising and channel messaging.
229 stars 59 forks source link

Update dgram.createSocket in network.js to prevent EADDRINUSE error. #10

Closed wehriam closed 9 years ago

wehriam commented 9 years ago

Please let me know if I can provide any additional information.

wankdanker commented 9 years ago

Just published v0.0.17 to npm. Node < 0.12 does not support passing an object to dgram.createSocket, so I had to add some version checking. Please give this a shot and let me know if there are any problems. I'd also like to know if var d = discover({ reuseAddr : false }) reverts to the old behavior you were originally trying to avoid. I don't have v0.12 installed to test at the moment.

Thank you for your help.