Skip to content

Commit

Permalink
reduced default graceful_timeout from 30 to 20 seconds in Mojo::Serve…
Browse files Browse the repository at this point in the history
…r::Hypnotoad
  • Loading branch information
kraih committed Jul 7, 2012
1 parent 9d98bb4 commit 60e2b33
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions Changes
@@ -1,5 +1,7 @@

3.05 2012-07-08
- Reduced default graceful_timeout from 30 to 20 seconds in
Mojo::Server::Hypnotoad.
- Improved documentation.
- Improved tests.
- Fixed small initialization bug in Mojo::IOLoop::Stream.
Expand Down
6 changes: 3 additions & 3 deletions lib/Mojo/Server/Hypnotoad.pm
Expand Up @@ -117,7 +117,7 @@ sub _config {

# Hypnotoad settings
my $c = $self->{config} = $app->config('hypnotoad') || {};
$c->{graceful_timeout} ||= 30;
$c->{graceful_timeout} ||= 20;
$c->{heartbeat_interval} ||= 5;
$c->{heartbeat_timeout} ||= 20;
$c->{lock_file} ||= catfile tmpdir, 'hypnotoad.lock';
Expand Down Expand Up @@ -484,7 +484,7 @@ performance.
graceful_timeout => 15
Maximum amount of time in seconds stopping a worker gracefully may take before
being forced, defaults to C<30>.
being forced, defaults to C<20>.
=head2 C<group>
Expand Down Expand Up @@ -557,7 +557,7 @@ C<MOJO_REVERSE_PROXY> environment variable.
=head2 C<upgrade_timeout>
upgrade_timeout => 30
upgrade_timeout => 45
Maximum amount of time in seconds a zero downtime software upgrade may take
before getting canceled, defaults to C<60>.
Expand Down

0 comments on commit 60e2b33

Please sign in to comment.