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
I'm attempting to enable connection reuse for a simple application using this module, but I'm not sure how to verify whether connections are being reused.
I tried adding some simple logging after each request to look at the agent status. Is that the right way to determine if it's working?
Using the default options, I tried making three requests using an HTTPS agent, and I see the following statuses printed using JSON.stringify(agent.getCurrentStatus()). Am I right to think that connections aren't being reused here? Is there any way to debug connection reuse?
After further exploration, I think the problem was that I was only using the agent to make serial requests. By swapping my agent scope to reuse the same agent for a large number of parallel requests, the status data started to really make sense and clearly showed connection reuse.
I'm attempting to enable connection reuse for a simple application using this module, but I'm not sure how to verify whether connections are being reused.
I tried adding some simple logging after each request to look at the agent status. Is that the right way to determine if it's working?
Using the default options, I tried making three requests using an HTTPS agent, and I see the following statuses printed using
JSON.stringify(agent.getCurrentStatus())
. Am I right to think that connections aren't being reused here? Is there any way to debug connection reuse?The text was updated successfully, but these errors were encountered: