241480
代码就是很简单的用到了http模块
var httpServer = http.createServer(router);
httpServer.on('clientError', _onClientError); //错误就是这个回调报出来的
httpServer.on('error', _onHttpError);
httpServer.listen(config.httpPort, config.bindAddress);
代码就是很简单的用到了http模块
var httpServer = http.createServer(router);
httpServer.on('clientError', _onClientError); //错误就是这个回调报出来的
httpServer.on('error', _onHttpError);
httpServer.listen(config.httpPort, config.bindAddress);