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
When investigating why connections were being created and destroyed constantly I noticed that forever-agent looks at the request's useChunkedEncodingByDefault property rather than it's chunkedEncoding property, which seems to actually say if the request is chunked or not. Is there a reason for this?
In this screenshot you can see:
there are 9 free sockets available
there are 10 total sockets open
the request is not chunkedEncoded
it still creates a new socket
The text was updated successfully, but these errors were encountered:
Did not realize that this method is called within http.request(). I think that means that I would have to set the content-length header in the call to http.request() in order to tell ForeverAgent that I will not be using chunked encoding, and it can therefore draw from the connection pool.
When investigating why connections were being created and destroyed constantly I noticed that forever-agent looks at the request's
useChunkedEncodingByDefault
property rather than it'schunkedEncoding
property, which seems to actually say if the request is chunked or not. Is there a reason for this?In this screenshot you can see:
The text was updated successfully, but these errors were encountered: