Skip to content

Commit

Permalink
Merge pull request #2073 from brsakai-csco/patch-1
Browse files Browse the repository at this point in the history
Do not send redundant SIGQUITs
  • Loading branch information
mergify[bot] committed Jun 9, 2023
2 parents 68075c9 + e39dc9f commit 14d2875
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Mojo/Server/Prefork.pm
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,10 @@ sub _wait {
while ($chunk =~ /(\d+):(\d)\n/g) {
next unless my $w = $self->{pool}{$1};
@$w{qw(healthy time)} = (1, $time) and $self->emit(heartbeat => $1);
$w->{graceful} ||= $time if $2;
if ($2) {
$w->{graceful} ||= $time;
$w->{quit}++;
}
}
}

Expand Down

0 comments on commit 14d2875

Please sign in to comment.