Skip to content

Commit

Permalink
update agentkepalive and default props
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Bizyaev committed Dec 21, 2022
1 parent 7468e7f commit 7dd5463
Show file tree
Hide file tree
Showing 3 changed files with 885 additions and 8 deletions.
9 changes: 5 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ var

var defaultAgentOptions = {
keepAlive: true,
maxSockets: 124,
maxFreeSockets: 10,
freeSocketTimeout: 30000,
timeout: 60000,
// because node http server default timeout is 120 seconds, close socket before its timeout
freeSocketKeepAliveTimeout: 110000,
freeSocketTimeout: 110000,
// timeout of a request 5 minutes
timeout: 300e3
socketActiveTTL: 110000,
};

var Factory = function(apiURL) {
Expand Down
Loading

0 comments on commit 7dd5463

Please sign in to comment.