TooTallNate / proxy-agents

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

https Keep-Alive support ? #110

Closed ruslanx3m closed 1 year ago

ruslanx3m commented 4 years ago

Keep-Alive support ?

ArturAralin commented 4 years ago

Look on my PR https://github.com/TooTallNate/node-https-proxy-agent/pull/112

giy-debug commented 3 years ago

I have switched to using this library: https://github.com/mknj/node-keepalive-proxy-agent Note that it's configured with host instead of hostname.

Looking at the source code here I think it's flawed because it creates a new socket for every request and thus it is repeating the TLS handshake with every request. Would be a major revamp to implement. Also I don't understand why it is not extending the native https.Agent.

Nisthar commented 3 years ago

@giy-debug does it work with axios?

TooTallNate commented 1 year ago

keepAlive: true is finally here! https://github.com/TooTallNate/proxy-agents/pull/147