Skip to content

Commit

Permalink
workers do not stop sending heartbeat messages
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 5, 2015
1 parent d25a18d commit a4c2c80
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/Mojo/Server/Prefork.pm
Expand Up @@ -196,7 +196,7 @@ sub _spawn {
);
$loop->unlock(sub { flock $handle, LOCK_UN });

# Heartbeat messages (stop sending during graceful stop)
# Heartbeat messages
weaken $self;
$loop->recurring(
$self->heartbeat_interval => sub {
Expand Down Expand Up @@ -403,9 +403,7 @@ Maximum number of connections a worker is allowed to accept before stopping
gracefully and then getting replaced with a newly started worker, passed along
to L<Mojo::IOLoop/"max_accepts">, defaults to C<1000>. Setting the value to
C<0> will allow workers to accept new connections indefinitely. Note that up
to half of this value can be subtracted randomly to improve load balancing,
and that worker processes will stop sending heartbeat messages once the limit
has been reached.
to half of this value can be subtracted randomly to improve load balancing.
=head2 cleanup
Expand Down

0 comments on commit a4c2c80

Please sign in to comment.