senecajs / seneca

A microservices toolkit for Node.js.
http://senecajs.org
MIT License
3.96k stars 311 forks source link

why not immediately throw error about port already in use #882

Open flameleo11p opened 3 years ago

flameleo11p commented 3 years ago

// run ./server.js twice then ....

var Seneca = require('seneca') Seneca() .quiet() // only log errors .use(approver) .listen({type: 'tcp', port: 8260, pin: 'cmd:*'})

Error: listen EADDRINUSE: address already in use 0.0.0.0:8260

rjrodger commented 3 years ago

A bug - thanks! .quiet is hiding the error log also port conflicts should be fatal errors