8000 add memory leak fix · Jimbly/http-proxy-node16@56283e3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 56283e3

Browse files
rostik404Jimbly
authored andcommitted
add memory leak fix
Reference: http-party/node-http-proxy#1510
1 parent 2881b81 commit 56283e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/http-proxy/passes/ws-incoming.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ module.exports = {
129129
// if it errors (eg, vanishes from the net and starts returning
130130
// EHOSTUNREACH). We need to do that explicitly.
131131
socket.on('error', function () {
132-
proxySocket.end();
132+
proxySocket.destroy();
133133
});
134134

135135
common.setupSocket(proxySocket);

0 commit comments

Comments
 (0)
0