From 6da03f53189aa0991d368124c418cabc8e7d0bf3 Mon Sep 17 00:00:00 2001 From: Uri Berman Date: Thu, 30 Aug 2018 09:02:52 -0500 Subject: [PATCH 1/3] Added https to the max_sockets setting --- lib/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index 48efd49..52b31e0 100644 --- a/lib/index.js +++ b/lib/index.js @@ -92,7 +92,8 @@ var read_config = function(){ } if (config.max_sockets) { - require('http').globalAgent.maxSockets = config.max_sockets + require('http').globalAgent.maxSockets = config.max_sockets; + require('htts').globalAgent.maxSockets = config.max_sockets; } // Process command line switches, if any. Command-line switches override the settings From 8850c16e60d0dea8a6e057355e3045d896d6045f Mon Sep 17 00:00:00 2001 From: Uri Berman Date: Thu, 30 Aug 2018 09:37:43 -0500 Subject: [PATCH 2/3] Fixed a typo in require('https') --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index 52b31e0..e556aab 100644 --- a/lib/index.js +++ b/lib/index.js @@ -93,7 +93,7 @@ var read_config = function(){ if (config.max_sockets) { require('http').globalAgent.maxSockets = config.max_sockets; - require('htts').globalAgent.maxSockets = config.max_sockets; + require('https').globalAgent.maxSockets = config.max_sockets; } // Process command line switches, if any. Command-line switches override the settings From a8587f4b9ba49d426e1ad54fdd080ef8664d0af6 Mon Sep 17 00:00:00 2001 From: Uri Berman Date: Tue, 28 Aug 2018 11:28:01 -0500 Subject: [PATCH 3/3] Fixed a null pointer exception --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index e556aab..d2b3729 100644 --- a/lib/index.js +++ b/lib/index.js @@ -102,7 +102,7 @@ var read_config = function(){ if (process.argv[i] === '-n' || process.argv[i] === '--no_daemon') config['no_daemon'] = true; if (process.argv[i] === '-h' || process.argv[i] === '--halt_on_change') config['halt_on_change'] = true; else if (process.argv[i] === '-d' || process.argv[i] === '--local_store') { - if (i+1 >= process.argv[length]) { + if (i+1 >= process.argv.length) { logger.error("No dir provided with --local_store option"); process.exit(3); }