1
當使用http.createServer用Node.js的,我得到以下錯誤:Node.js的插座掛斷錯誤
events.js:48
throw arguments[1]; // Unhandled 'error' event
^
Error: socket hang up
at createHangUpError (http.js:1092:15)
at Socket.onend (http.js:1155:27)
at TCP.onread (net.js:349:26)
簡單的代碼:
http.createServer(
connect_cache({rules: [{regex: /.*/, ttl: 60000}]}),
function(b_request, b_response){ ..... }
);
那麼,是什麼錯誤呢?我該如何解決它?
謝謝!