Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
increased default heartbeat_timeout from 10 to 20 seconds in Mojo::Se…
…rver::Hypnotoad
  • Loading branch information
kraih committed Apr 23, 2012
1 parent 22e42fa commit 69c4d40
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions Changes
Expand Up @@ -3,6 +3,8 @@ This file documents the revision history for Perl extension Mojolicious.
2.86 2012-04-23
- Added support for TO_JSON method to Mojo::JSON.
- Updated HTML5 entities in Mojo::Util.
- Increased default heartbeat_timeout from 10 to 20 seconds in
Mojo::Server::Hypnotoad.
- Improved Mojo::Template exception handling.
- Improved ojo exception handling.
- Improved documentation.
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojo/Server/Hypnotoad.pm
Expand Up @@ -136,7 +136,7 @@ sub _config {
$self->{config} = $c;
$c->{graceful_timeout} ||= 30;
$c->{heartbeat_interval} ||= 5;
$c->{heartbeat_timeout} ||= 10;
$c->{heartbeat_timeout} ||= 20;
$c->{lock_file} ||= catfile tmpdir, 'hypnotoad.lock';
$c->{lock_file} .= ".$$";
$c->{lock_timeout} ||= 0.5;
Expand Down Expand Up @@ -519,7 +519,7 @@ Heartbeat interval in seconds, defaults to C<5>.
heartbeat_timeout => 2
Maximum amount of time in seconds before a worker without a heartbeat will be
stopped, defaults to C<10>.
stopped, defaults to C<20>.
=head2 C<inactivity_timeout>
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Guides/FAQ.pod
Expand Up @@ -116,7 +116,7 @@ Hypnotoad worker processes send heartbeat messages to the manager process in
regular intervals to signal that they are still responsive. A long blocking
operation in your application can prevent this, and will force the affected
worker to be restarted after a timeout. This C<heartbeat_timeout> defaults to
C<10> seconds and can be extended if your application requires it.
C<20> seconds and can be extended if your application requires it.

=head2 I think i have found a bug, what should i do now?

Expand Down

0 comments on commit 69c4d40

Please sign in to comment.