documentdb
Advanced tools
Comparing version 1.5.3 to 1.5.4
@@ -0,1 +1,5 @@ | ||
## Changes in 1.5.4 : ## | ||
- Dedicated HTTPS Agent: Avoid modifying the global agent for DocumentDB purposes. Use a dedicated agent for all of the lib�s requests. | ||
## Changes in 1.5.3 : ## | ||
@@ -2,0 +6,0 @@ |
@@ -149,3 +149,3 @@ /* | ||
UserAgent: "documentdb-nodejs-sdk-1.5.3", | ||
UserAgent: "documentdb-nodejs-sdk-1.5.4", | ||
@@ -152,0 +152,0 @@ DefaultPrecisions: { |
@@ -30,10 +30,6 @@ /* | ||
, url = require("url") | ||
, querystring = require("querystring"); | ||
, querystring = require("querystring") | ||
// Dedicated Agent for socket pooling | ||
, keepAliveAgent = new https.Agent({ keepAlive: true, maxSockets: Infinity }); | ||
// We don't turn off agent because we want the pooling benefits. | ||
https.globalAgent.maxSockets = 10000; | ||
// setting security protocol for the global agent. | ||
https.globalAgent.options.secureProtocol = "TLSv1_client_method"; | ||
// Keeping the connection alive to reuse the sockets. | ||
https.globalAgent.keepAlive = true; | ||
//---------------------------------------------------------------------------- | ||
@@ -150,2 +146,4 @@ // Utility methods | ||
requestOptions.headers = headers; | ||
requestOptions.agent = keepAliveAgent; | ||
requestOptions.secureProtocol = "TLSv1_client_method"; | ||
@@ -152,0 +150,0 @@ if (queryParams) { |
@@ -12,3 +12,3 @@ { | ||
], | ||
"version": "1.5.3", | ||
"version": "1.5.4", | ||
"author": "Microsoft Corporation", | ||
@@ -15,0 +15,0 @@ "main": "./index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3656708
7529