Skip to content

Commit

Permalink
adding max sockets to prevent memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffsu committed Oct 23, 2012
1 parent 87e6b9d commit 6d33ea7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mock/upbeat-server.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require('mochiscript');
require('js-yaml');

require('http').globalAgent.maxSockets = 100;
var upbeat = require('../lib/upbeat');
var config = require('./example.yml');
var server = new upbeat.Server(config);
Expand Down

0 comments on commit 6d33ea7

Please sign in to comment.