We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59f875e commit 3f3ae83Copy full SHA for 3f3ae83
1 file changed
lib/server.js
@@ -216,6 +216,12 @@ function Server(opts, callback) {
216
var server = interfaces.serverFactory(iface, fallback, that);
217
that.servers.push(server);
218
server.maxConnections = iface.maxConnections || 10000000;
219
+
220
+ // Catch listen errors
221
+ server.on('error', function (e) {
222
+ that.logger.error('Error starting Mosca Server');
223
+ that.emit('error', e);
224
+ });
225
server.listen(port, host, dn);
226
}, done);
227
},
0 commit comments