Skip to content

Commit

Permalink
refactor(config): set keepAliveTimeout 4000ms by default (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
popomore authored and fengmk2 committed Dec 21, 2016
1 parent 0326813 commit 897ca33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/config.default.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,15 +166,15 @@ module.exports = appInfo => {
* urllib options
* @member Config#urllib
* @property {Boolean} keepAlive - Enable http keepalive or not, default is true
* @property {Integer} keepAliveTimeout - socket keepalive max free time, default is 30000 ms.
* @property {Integer} keepAliveTimeout - socket keepalive max free time, default is 4000 ms.
* @property {Integer} timeout - socket max unative time, default is 30000 ms.
* @property {Integer} maxSockets - max socket number of one host, default is Infinity.
* @property {Integer} maxFreeSockets - max free socket number of one host, default is 256.
* @property {Boolean} enableDNSCache - Enable DNS lookup from local cache or not, default is false.
*/
exports.urllib = {
keepAlive: true,
keepAliveTimeout: 30000,
keepAliveTimeout: 4000,
timeout: 30000,
maxSockets: Infinity,
maxFreeSockets: 256,
Expand Down

0 comments on commit 897ca33

Please sign in to comment.