delvedor / hpagent

A ready to use http and https agent for working with proxies that keeps connections alive!
MIT License
181 stars 37 forks source link

How to close all sockets after program close ?? #7

Closed ruslanx3m closed 2 years ago

ruslanx3m commented 4 years ago

How to close all sockets after program close ??

httpsAgent.destroy(); // not work

delvedor commented 3 years ago

The agent extends from Node.js's core one. You should use the same strategy. Can you add an example to reproduce the issue?