TooTallNate / proxy-agents

Node.js HTTP Proxy Agents Monorepo
https://proxy-agents.n8.io
919 stars 239 forks source link

close the connecting socket when request errored #91

Closed Kluezesh closed 1 year ago

Kluezesh commented 4 years ago

I find a bug : Before the socket callback to agent-base and request emit an error(such as timeout, abort, ...), the socket isn't handled of stopping the connection.

TooTallNate commented 1 year ago

This module has gone through a large refactor and modernization. I am closing this pull request as a bit of house cleaning. If you feel that this change is still necessary as of the latest release, feel free to open a new pull request.