3

我正在使用 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)
4

1 回答 1

0

尝试在您创建的 TCP 服务器上处理“错误”事件。所有未处理的“错误”事件都会在 node.js 上导致未处理的异常

于 2011-06-09T07:43:34.737 回答