-
Notifications
You must be signed in to change notification settings - Fork 166
Closed
Description
Hey, as long as the module is running in the system, I see a growing number of open ports. How to clean unnecessary open HTTPS servers?
I tried this way on ctx.onResponseEnd:
(Object.keys(proxy.sslServers)).forEach(function (srvName) {
if (proxy.sslServers[srvName].server._connections === 0 && !proxy.sslServers[srvName].server._handle.reading && proxy.sslServers[srvName].server._handle.writeQueueSize === 0) {
console.log('Can: ', proxy.sslServers[srvName].server);
proxy.sslServers[srvName].server.close();
delete proxy.sslServers[srvName];
console.log('HTTPS Server: "' + srvName.yellow + '" closed.');
} else {
console.log('Cannot: ', proxy.sslServers[srvName].server);
}
});
Did not work. Proxy client loses the connection and make mistakes. Please help.
Metadata
Metadata
Assignees
Labels
No labels