add default for pool

This commit is contained in:
Anthony Ettinger 2017-01-30 21:57:33 -08:00
parent d1860e1aab
commit c81e601550
2 changed files with 9 additions and 1 deletions

View file

@ -84,7 +84,10 @@ var Bing = function (options) {
"User-Agent": opts.userAgent,
"Ocp-Apim-Subscription-Key": opts.accKey
},
timeout: opts.reqTimeout
timeout: opts.reqTimeout,
pool: {
maxSockets: opts.maxSockets || Infinity
}
}, function (err, res, body) {