Skip to content

Commit

Permalink
Up keepalive timeout.
Browse files Browse the repository at this point in the history
This will cause it to take a little longer before an abandoned server dies and frees it's port, but should reduce accidental deaths when the supervising process is backlogged.
  • Loading branch information
n1mmy committed Jul 12, 2012
1 parent 564b292 commit bb3bc20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ var init_keepalive = function () {

setInterval(function () {
keepalive_count ++;
if (keepalive_count >= 2) {
if (keepalive_count >= 3) {
console.log("Failed to receive keepalive! Exiting.");
process.exit(1);
}
Expand Down

0 comments on commit bb3bc20

Please sign in to comment.