Created by: erasmospunk
For this issue I just commented instead of deleting the unneeded code because I only tried the normal http parts, not the web sockets but I believe that 99,9% is correct.
After some research this part is causing the problem:
reverseProxy.once('socket', function (socket) {
socket.once('error', proxyError);
});
This is not needed as node.js' ClientRequest
object (here the reverseProxy
) attaches a listener to the socket 'error'
socket.on('error', socketErrorListener);
The socketErrorListener
just re-emits the error from the ClientRequest
object.
Look in https://github.com/joyent/node/blob/master/lib/http.js for the socketErrorListener
references.