Unhandled 'error' event #331

Closed
aimnadze opened this Issue Nov 7, 2012 · 2 comments

1 participant

@aimnadze

My code handles proxyError event on require('http-proxy').RoutingProxy. But after several days of heavy use the module crashes with this error:

events.js:71
        throw arguments[1]; // Unhandled 'error' event
                       ^
Error: Parse Error
    at Socket.socketOnData (http.js:1367:20)
    at TCP.onread (net.js:403:27)

Please, help me debug the problem. I think the native error event gets fired multiple times.

@aimnadze

In http-proxy.js lines: 302 and 316
reverseProxy.removeListener('error', proxyError);
reverseProxy.once('error', proxyError);

These two lines remove error listeners. But soon another error event occurs and no handler is registered that time. Unfortunately I have no steps to reproduce this.

@aimnadze

I've investigated the problem and found a bug in Node.js which I'm gonna report now.

@aimnadze aimnadze closed this Nov 9, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment