Closed
Description
It seems there is no way to attach error handlers to HTTP servers. Am I missing something?
E.g. the equivalent of the following JS:
var s = http.createServer(h);
s.on('error', function(err) { console.log('oops!', err); });
s.listen(9000); // in case of failure, will call the above callback