Skip to content

Commit

Permalink
add memory leak fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rostik404 authored and Jimbly committed Dec 28, 2023
1 parent 2881b81 commit 56283e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/http-proxy/passes/ws-incoming.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ module.exports = {
// if it errors (eg, vanishes from the net and starts returning
// EHOSTUNREACH). We need to do that explicitly.
socket.on('error', function () {
proxySocket.end();
proxySocket.destroy();
});

common.setupSocket(proxySocket);
Expand Down

0 comments on commit 56283e3

Please sign in to comment.