How to solve process.nextTick error?

I use node.js to build the TCP server and I got the following errors. How to solve this?

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)
+3
source share
1 answer

Try to handle the error event on the TCP server you created. All unhandled "error" events raise an unhandled exception in node.js

0
source

All Articles