You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The bug bisects to 7eb7346 and this patch seems to fix it:
--- a/lib/Mojo/IOLoop.pm+++ b/lib/Mojo/IOLoop.pm@@ -142,7 +142,7 @@ sub stop { _instance(shift)->reactor->stop }
sub stop_gracefully {
my $self = _instance(shift)->_not_accepting;
- ++$self->{stop} and !$self->emit('finish')->_in and $self->stop;+ $self->{stop}++ and !$self->emit('finish')->_in and $self->stop;
}
sub stream {
I cannot claim to fully understand what's happening, so other changes may be needed.
The text was updated successfully, but these errors were encountered:
This one-liner creates a server that fails every other request (as the server restarts):
perl -E 'use Mojo::Server::Prefork; Mojo::Server::Prefork->new(workers=>1, accepts=>2)->run;'
The bug bisects to 7eb7346 and this patch seems to fix it:
I cannot claim to fully understand what's happening, so other changes may be needed.
The text was updated successfully, but these errors were encountered: