Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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('https').globalAgent.maxSockets = config.max_sockets;
}

// Process command line switches, if any. Command-line switches override the settings
Expand All @@ -101,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);
}
Expand Down