Open iwan-aucamp-cs opened 6 years ago
this.httpServer = isSecure ? https.createServer(options, handleMethodCall) : http.createServer(handleMethodCall) process.nextTick(function() { this.httpServer.listen(options.port, options.host, onListening) }.bind(this)) this.close = function(callback) { this.httpServer.once('close', callback) this.httpServer.close() }.bind(this) }
This is how the server is created - this gives no opportunity for setting on(error) for http server before listen occurs.
error
This is how the server is created - this gives no opportunity for setting on(
error
) for http server before listen occurs.