Skip to content

Commit

Permalink
Added opt-in workerPingInterval option.
Browse files Browse the repository at this point in the history
Defaults to one minute, can be disabled with `false`
  • Loading branch information
rauchg committed Jan 31, 2012
1 parent f9892fa commit 608658a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/up.js
Expand Up @@ -74,6 +74,9 @@ function UpServer (server, file, opts) {
this.workerTimeout = ms(null != opts.workerTimeout
? opts.workerTimeout : workerTimeout);
this.requires = opts.requires || [];
if (false !== opts.workerPingInterval) {
this.workerPingInterval = ms(opts.workerPingInterval || '1m');
}

this.workers = [];
this.spawning = [];
Expand Down

0 comments on commit 608658a

Please sign in to comment.