Skip to content


pool and maxSockets #428

ujjwal opened this Issue · 1 comment

2 participants


How do I set the value of maxSockets? Do I need to set it via the pool?


You define an object,

var pool = { maxSockets = 1 };

which you then use as a parameter for your request:

request( { url: "", pool : pool}, function (error, res, body {});
@ujjwal ujjwal closed this
This was referenced
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.