mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
remove offending code, final fix for issue #364
This commit is contained in:
parent
43e5f33320
commit
3b84e27ab4
@ -312,14 +312,6 @@ HttpProxy.prototype.proxyRequest = function (req, res, buffer) {
|
||||
// Handle 'error' events from the `reverseProxy`.
|
||||
//
|
||||
reverseProxy.once('error', proxyError);
|
||||
//
|
||||
// NOT needed as node.js re-emits the socket errors as ClientRequest 'error'
|
||||
// Look for socketErrorListener references in
|
||||
// https://github.com/joyent/node/blob/master/lib/http.js
|
||||
//
|
||||
// reverseProxy.once('socket', function (socket) {
|
||||
// socket.once('error', proxyError);
|
||||
// });
|
||||
|
||||
//
|
||||
// Handle 'error' events from the `req` (e.g. `Parse Error`).
|
||||
@ -724,14 +716,6 @@ HttpProxy.prototype.proxyWebSocketRequest = function (req, socket, head, buffer)
|
||||
return proxyError(ex);
|
||||
}
|
||||
|
||||
//
|
||||
// NOT needed as node.js re-emits the socket errors as ClientRequest 'error'
|
||||
// Look for socketErrorListener references in
|
||||
// https://github.com/joyent/node/blob/master/lib/http.js
|
||||
//
|
||||
// Catch socket errors
|
||||
//socket.on('error', proxyError);
|
||||
|
||||
//
|
||||
// Remove data listener now that the 'handshake' is complete
|
||||
//
|
||||
@ -743,14 +727,6 @@ HttpProxy.prototype.proxyWebSocketRequest = function (req, socket, head, buffer)
|
||||
// Handle 'error' events from the `reverseProxy`.
|
||||
//
|
||||
reverseProxy.on('error', proxyError);
|
||||
//
|
||||
// NOT needed as node.js re-emits the socket errors as ClientRequest 'error'
|
||||
// Look for socketErrorListener references in
|
||||
// https://github.com/joyent/node/blob/master/lib/http.js
|
||||
//
|
||||
// reverseProxy.once('socket', function (socket) {
|
||||
// socket.once('error', proxyError);
|
||||
// });
|
||||
|
||||
//
|
||||
// Handle 'error' events from the `req` (e.g. `Parse Error`).
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user