Skip to content

Commit f185f14

Browse files
authored
Fix for leaving open bad connections.
1 parent 04b3561 commit f185f14

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

proxy.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,14 @@ function Pool(poolData){
205205
cluster.workers[worker].send({type: 'disablePool', pool: this.hostname});
206206
}
207207
}
208+
try {
209+
if (this.socket !== null){
210+
this.socket.end();
211+
this.socket.destroy();
212+
}
213+
} catch (e) {
214+
console.log("Had issues murdering the old socket. Om nom: " + e)
215+
}
208216
this.socket = null;
209217
this.active = false;
210218
if (this.ssl){

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy