Skip to content

Commit

Permalink
improve Windows compatibility of Mojo::Server::Daemon (closes #1133)
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Nov 5, 2017
1 parent d14a762 commit ddcb001
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Changes
@@ -1,5 +1,6 @@

7.55 2017-11-06
7.55 2017-11-05
- Improved Windows compatibility of Mojo::Server::Daemon.

7.54 2017-11-05
- Fixed a bug in Mojo::Promise where promise chains could not recover from
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/Server/Daemon.pm
Expand Up @@ -106,7 +106,7 @@ sub _build_tx {
my $c = $self->{connections}{$id};
$tx->res->headers->connection('close')
and ++Mojo::IOLoop->stream($id)->{closed}
if $c->{requests} >= $self->max_requests || $req->error;
if ($c->{requests} || 1) >= $self->max_requests || $req->error;

$tx->on(resume => sub { $self->_write($id) });
$self->_write($id);
Expand Down

0 comments on commit ddcb001

Please sign in to comment.