pubnub/pubnub-api — Issue #62: Node.js - Unhandled 'error' event
Author: dmilisic
Created: 2012-01-20 14:29:31+00:00
State: open

I'm using node.js version 0.6.7 on Windows. In my application, i'm subscribing to multiple channels and publishing to multiple other channels. All network communication is done via pubnub. After some longer period of running process (more than hour) the process crashes with:

events.js:48
throw arguments[1]; // Unhandled 'error' event
^
Error: socket hang up
at createHangUpError (http.js:1104:15)
at Socket.onend (http.js:1167:27)
at TCP.onread (net.js:369:26)

It happened to me twice today. The first time it crashed immediately after one publish. I'm not sure about the other time - was it idle or had just received a message on subscribed channel. I'm sure it was not publishing anything.

Could this be Windows issue?