Skip to content

Commit 7dd5463

Browse files
author
Sergey Bizyaev
committed
update agentkepalive and default props
1 parent 7468e7f commit 7dd5463

File tree

3 files changed

+885
-8
lines changed

3 files changed

+885
-8
lines changed

index.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@ var
99

1010
var defaultAgentOptions = {
1111
keepAlive: true,
12+
maxSockets: 124,
13+
maxFreeSockets: 10,
14+
freeSocketTimeout: 30000,
15+
timeout: 60000,
1216
// because node http server default timeout is 120 seconds, close socket before its timeout
13-
freeSocketKeepAliveTimeout: 110000,
14-
freeSocketTimeout: 110000,
15-
// timeout of a request 5 minutes
16-
timeout: 300e3
17+
socketActiveTTL: 110000,
1718
};
1819

1920
var Factory = function(apiURL) {

0 commit comments

Comments
 (0)