Commit 97a8eb629fdeaf7f6225f755dcee34198748fecc
1 parent
b8d15334e9
Exists in
master
setting http.globalAgent.maxSockets = Infinity
Showing 1 changed file with 8 additions and 0 deletions Side-by-side Diff
xmlrpc-server.js
... | ... | @@ -41,6 +41,14 @@ function start(_options) { |
41 | 41 | createDiyHttpXmlRpcServer(); |
42 | 42 | //createXmlRpcServer() |
43 | 43 | //createExpressXmlRpcServer(); |
44 | + | |
45 | + try { | |
46 | + http.globalAgent.maxSockets = Infinity; | |
47 | + } | |
48 | + catch(e) { | |
49 | + logger.warn('Error setting http.globalAgent.maxSockets = Infinity', {err: e}); | |
50 | + } | |
51 | + | |
44 | 52 | } |
45 | 53 | |
46 | 54 | function getXmlRpcParam(values) { |