Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

pool and maxSockets #428

Closed
ujjwal opened this Issue · 1 comment

2 participants

@ujjwal

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

@arisolt

You define an object,

var pool = { maxSockets = 1 };

which you then use as a parameter for your request:

request( { url: "http://google.com", 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.