Skip to content

Commit

Permalink
Make keepalives opt-in, instead of on by default. Turn them on in dev…
Browse files Browse the repository at this point in the history
… mode.
  • Loading branch information
Nick Martin committed Nov 30, 2011
1 parent 0cbc965 commit f57b6e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ var run = function (bundle_dir) {

}).run();

init_keepalive();
if (argv.keepalive)
init_keepalive();
};

run();
3 changes: 2 additions & 1 deletion app/skybreak/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,8 @@ var start_server = function (bundle_path, port, mongo_url, on_exit) {

Status.running = true;
proc = spawn(process.execPath,
[path.join(bundle_path, 'main.js')], {env: env});
[path.join(bundle_path, 'main.js'), '--keepalive'],
{env: env});

proc.stdout.setEncoding('utf8');
proc.stdout.on('data', function (data) {
Expand Down

0 comments on commit f57b6e1

Please sign in to comment.