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

Clean up socket in case of error #98

Closed delvedor closed 1 year ago

delvedor commented 1 year ago

As titled. Apparently, ava has some magic to clean up resources, so we can't use it to test this specific case. To address the issue, I've created a custom folder where we test specifically for this scenario with a plain node program.

Fixes: #86