Express Node Request For Loop Issue

时间:2017-03-22 18:39:40

标签: node.js express

While running request in a loop it shows an error ETIMEOUT around 101 times (length of the array).

for(var x=0;x<100;x++){request({
  uri: "abc.com,
 qs: {
   "token": 'xyz',
 },
 timeout:10000,}, function (err, result) {});}

Is there any solution?

0 个答案:

没有答案