cloudcms-server 3.2.292 → 3.2.294

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -55,6 +55,26 @@ if (typeof(dns.setDefaultResultOrder) !== "undefined") {
55
55
  dns.setDefaultResultOrder("ipv4first");
56
56
  }
57
57
 
58
+ // default agents
59
+ var HttpKeepAliveAgent = require('agentkeepalive');
60
+ var HttpsKeepAliveAgent = require('agentkeepalive').HttpsAgent;
61
+ http.globalAgent = new HttpKeepAliveAgent({
62
+ keepAlive: true,
63
+ keepAliveMsecs: 30000,
64
+ maxSockets: 24000,
65
+ maxFreeSockets: 256,
66
+ timeout: process.defaultHttpTimeoutMs,
67
+ freeSocketTimeout: 60000
68
+ });
69
+ https.globalAgent = new HttpsKeepAliveAgent({
70
+ keepAlive: true,
71
+ keepAliveMsecs: 30000,
72
+ maxSockets: 24000,
73
+ maxFreeSockets: 256,
74
+ timeout: process.defaultHttpTimeoutMs,
75
+ freeSocketTimeout: 60000
76
+ });
77
+
58
78
  // disable for now
59
79
  /*
60
80
  // report http/https socket state every minute
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  },
7
7
  "name": "cloudcms-server",
8
8
  "description": "Cloud CMS Application Server Module",
9
- "version": "3.2.292",
9
+ "version": "3.2.294",
10
10
  "repository": {
11
11
  "type": "git",
12
12
  "url": "git://github.com/gitana/cloudcms-server.git"
@@ -16,6 +16,7 @@
16
16
  "@socket.io/redis-adapter": "^7.2.0",
17
17
  "@socket.io/sticky": "^1.0.1",
18
18
  "accepts": "^1.3.8",
19
+ "agentkeepalive": "^4.5.0",
19
20
  "alpaca": "^1.5.27",
20
21
  "archiver": "^1.3.0",
21
22
  "async": "^3.2.3",
@@ -73,7 +73,6 @@ var createProxyHandler = function(proxyTarget, pathPrefix)
73
73
  const { proxy, close } = require('fast-proxy')({
74
74
  base: proxyTarget,
75
75
  cacheURLs: 0,
76
- maxSockets: 16000,
77
76
  //http2: true,
78
77
  //undici: true
79
78
  });