我正在使用node.js构建TCP服务器,但我收到了以下错误。怎么解决这个问题?
node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: ETIMEDOUT, Connection timed out
at Socket._readImpl (net.js:163:14)
at Socket._onReadable (net.js:631:22)
at IOWatcher.onReadable [as callback] (net.js:177:10)
答案 0 :(得分:0)
尝试在您创建的TCP服务器上处理'error'事件。所有未处理的“错误”事件都会在node.js上导致未处理的异常