2011-05-21 25 views
3

我正在使用node.js構建一個TCP服務器,並且出現以下錯誤。如何解決這個問題?如何解決process.nextTick錯誤?

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

您的連接超時,我們需要更多信息。這可能意味着您的客戶端或服務器崩潰或您的TCP端口被阻止。 – Raynos 2011-05-21 12:04:14

回答

0

嘗試在您創建的TCP服務器上處理「錯誤」事件。所有未處理的「錯誤」事件都會導致node.js上的未處理異常012.JPG