Skip to content

Commit 9b20298

Browse files
committed
fix: close proxy socket on client socket "close" event
1 parent 438e470 commit 9b20298

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ module.exports = {
136136
proxySocket.end();
137137
});
138138

139+
socket.on('close', () => proxySocket.end());
139140
socket.on('end', () => socket.end());
140141

141142
common.setupSocket(proxySocket);

0 commit comments

Comments
 (0)