global-agent icon indicating copy to clipboard operation
global-agent copied to clipboard

Add keep-alive support

Open gajus opened this issue 6 years ago • 2 comments

gajus avatar Apr 26 '19 14:04 gajus

Refer to this issue for supporting information.

https://www.reddit.com/r/node/comments/bhj53t/global_httphttps_proxy_for_nodejs_v12/

gajus avatar Apr 27 '19 06:04 gajus

Hi @gajus,

So I understand that 'global-agent' will use keepAlive: 'false' even if we are using a custom instance of an Agent, right? So in the case that you mention in the documentation

This behaviour allows to intercept requests of libraries that use a custom instance of an agent per default (e.g. Stripe SDK uses an http(s).globalAgent instance pre-configured with keepAlive: true).

Even if the Stripe SDK is setting up the keepAlive: true global-agent is changing to keepAlive: 'false' right?

Best Regards.

jolivaSan avatar May 25 '23 10:05 jolivaSan