add default for pool
This commit is contained in:
parent
d1860e1aab
commit
c81e601550
2 changed files with 9 additions and 1 deletions
|
@ -103,6 +103,11 @@ Available Options:
|
||||||
* preContextText:\<*String*\>
|
* preContextText:\<*String*\>
|
||||||
* postContextText:\<*String*\>
|
* postContextText:\<*String*\>
|
||||||
|
|
||||||
|
### request() options
|
||||||
|
|
||||||
|
* maxSockets: integer (default: Infinity)
|
||||||
|
* reqTimeout: ms
|
||||||
|
|
||||||
#### Specify Market
|
#### Specify Market
|
||||||
Getting spanish results:
|
Getting spanish results:
|
||||||
```js
|
```js
|
||||||
|
|
|
@ -84,7 +84,10 @@ var Bing = function (options) {
|
||||||
"User-Agent": opts.userAgent,
|
"User-Agent": opts.userAgent,
|
||||||
"Ocp-Apim-Subscription-Key": opts.accKey
|
"Ocp-Apim-Subscription-Key": opts.accKey
|
||||||
},
|
},
|
||||||
timeout: opts.reqTimeout
|
timeout: opts.reqTimeout,
|
||||||
|
pool: {
|
||||||
|
maxSockets: opts.maxSockets || Infinity
|
||||||
|
}
|
||||||
|
|
||||||
}, function (err, res, body) {
|
}, function (err, res, body) {
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue