Skip to content

Commit

Permalink
Merge pull request #7 from gemini-testing/dd.close_proxy_socket_on_cl…
Browse files Browse the repository at this point in the history
…ose_client_socket

fix: close proxy socket on client socket "close" event
  • Loading branch information
DudaGod committed Aug 7, 2019
2 parents 438e470 + 9b20298 commit eafba2a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/http-proxy/passes/ws-incoming.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ module.exports = {
proxySocket.end();
});

socket.on('close', () => proxySocket.end());
socket.on('end', () => socket.end());

common.setupSocket(proxySocket);
Expand Down

0 comments on commit eafba2a

Please sign in to comment.