Skip to content

Commit

Permalink
set max client sockets
Browse files Browse the repository at this point in the history
  • Loading branch information
camshaft committed Dec 31, 2014
1 parent e18b4ac commit 10242ba
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

var domain = require('domain');
var http = require('http');
var https = require('https');
var uuid = require('node-uuid');
var cluster = require('cluster');
var resolve = require('path').resolve;
Expand Down Expand Up @@ -73,6 +74,12 @@ var handler = chooseHandler(app);

var onerror = chooseErrorHandler(app);

/**
* Setup the max client sockets
*/

https.globalAgent.maxSockets = http.globalAgent.maxSockets = envs.int('MAX_CLIENT_SOCKETS', 1000);

/**
* create a server instance
*
Expand Down

0 comments on commit 10242ba

Please sign in to comment.