cloudcms-server 3.2.295 → 3.2.296

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.
@@ -244,10 +244,8 @@ exports = module.exports = function()
244
244
  });
245
245
  }
246
246
 
247
- var t1 = new Date().getTime();
248
247
  proxyFactory.acquireProxyHandler(proxyTarget, null, function(err, proxyHandler) {
249
- var t2 = new Date().getTime();
250
- console.log("t21: " + (t2-t1));
248
+
251
249
  if (err) {
252
250
  return next(err);
253
251
  }
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.295",
9
+ "version": "3.2.296",
10
10
  "repository": {
11
11
  "type": "git",
12
12
  "url": "git://github.com/gitana/cloudcms-server.git"
@@ -33,6 +33,7 @@
33
33
  "consolidate": "^0.14.5",
34
34
  "cookie-parser": "^1.4.4",
35
35
  "debug": "^2.6.9",
36
+ "dns-lookup-cache": "^1.0.4",
36
37
  "dustjs-helpers": "1.7.4",
37
38
  "dustjs-linkedin": "3.0.1",
38
39
  "errorhandler": "^1.5.1",
@@ -9,6 +9,8 @@ var oauth2 = require("./oauth2")();
9
9
 
10
10
  var LRU = require("lru-cache");
11
11
 
12
+ const { lookup } = require('dns-lookup-cache');
13
+
12
14
  var exports = module.exports;
13
15
 
14
16
  var _LOCK = function(lockIdentifiers, workFunction)
@@ -64,8 +66,7 @@ var acquireProxyHandler = exports.acquireProxyHandler = function(proxyTarget, pa
64
66
  // callback(null, _cachedHandler);
65
67
  // });
66
68
 
67
- _cachedHandler = createProxyHandler(proxyTarget, pathPrefix);
68
- NAMED_PROXY_HANDLERS_CACHE[name] = _cachedHandler;
69
+ _cachedHandler = NAMED_PROXY_HANDLERS_CACHE[name] = createProxyHandler(proxyTarget, pathPrefix);
69
70
 
70
71
  callback(null, _cachedHandler);
71
72
  };
@@ -243,6 +244,9 @@ var createProxyHandler = function(proxyTarget, pathPrefix)
243
244
  {
244
245
  return headers;
245
246
  };
247
+ // request invoke settings
248
+ proxyOptions.request = {};
249
+ proxyOptions.request.lookup = lookup;
246
250
 
247
251
  //////////////////////////////////////////////////////////////////////////
248
252