Commit 97a8eb629fdeaf7f6225f755dcee34198748fecc

Authored by Adhidarma Hadiwinoto
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

... ... @@ -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) {