You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
TLS session creation is expensive in high-load scenarios (like SSL termination on load balancers). It would be very useful for core to offer an option on the agent to pool TLS connections or otherwise minimize session creation for clients that are going to be sending lots of SSL traffic to a specific host. This can be worked around with a custom Agent, but it's a common enough use case (and has a small enough API surface) that it would be worth the effort to bring into core.
The text was updated successfully, but these errors were encountered:
I did not get how overwriting Agent.prototype.createConnection works. Also I using the alternative cipher with the ssl key and cert slowed done the requests to ~800ms.
However I got success by setting these options:
var agent = new https.Agent({
"keepAlive": true,
"keepAliveMsecs": 3000,
"maxSockets": 100
});
This boils request time down to ~210ms which is OK for the moment.
TLS session creation is expensive in high-load scenarios (like SSL termination on load balancers). It would be very useful for core to offer an option on the agent to pool TLS connections or otherwise minimize session creation for clients that are going to be sending lots of SSL traffic to a specific host. This can be worked around with a custom Agent, but it's a common enough use case (and has a small enough API surface) that it would be worth the effort to bring into core.
The text was updated successfully, but these errors were encountered: