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
right now I can require('got') and require('http') to do e.g. var agent = new http.Agent({ maxSockets: 1 }) and then pass in the agent to the options when I do a got request, but IMO it would be nicer to not have to require('http') :)
The text was updated successfully, but these errors were encountered:
@maxogden yeah, I stumbled upon this day ago, because got uses infinity-agent and it quite hard to configure defaultMaxSockets in it. There should be nicer way to configure got agent I guess.
Problem with agent options is that got should decide when create new Agent instance and how reuse them.
right now I can
require('got')
andrequire('http')
to do e.g.var agent = new http.Agent({ maxSockets: 1 })
and then pass in the agent to the options when I do agot
request, but IMO it would be nicer to not have torequire('http')
:)The text was updated successfully, but these errors were encountered: