Billy

Results 3 comments of Billy

TCPServer is running at port 10000 , accept 99 http clients Client connected... HTTPServer is running at port 10001 ... stream.js:94 throw er; // Unhandled stream error in pipe. ^...

又折腾了一下,换成了 node v4.5.0,还是异常退出,但错误信息不太一样: ``` TCPServer is running at port 10000 , accept 99 http clients Client connected... HTTPServer is running at port 10001 ... events.js:141 throw er; // Unhandled 'error'...

一开始可以用,但是过一会,就会挂掉~ 我刚刚对 server 端做了点修改后,进程不再直接退出了 在第93行加入了以下代码: ``` sock.on('error', function(err){ console.error(err.stack); }); ``` 然后观察服务端,发现是 HTTP Server 挂了,Client disconnected!然后 HTTP connection closed.了