Skip to content

Commit

Permalink
documentation tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Aug 25, 2013
1 parent ad76974 commit 81c022b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/Mojo/Server/Daemon.pm
Expand Up @@ -320,7 +320,7 @@ implements the following new ones.
my $acceptors = $daemon->acceptors;
$daemon = $daemon->acceptors([]);
Currently active acceptors.
Active acceptors.
=head2 backlog
Expand Down
8 changes: 4 additions & 4 deletions t/mojo/app.t
Expand Up @@ -220,7 +220,7 @@ $daemon = Mojo::Server::Daemon->new(
listen => ["http://127.0.0.1:$port"],
silent => 1
);
is scalar @{$daemon->acceptors}, 0, 'no active acceptor';
is scalar @{$daemon->acceptors}, 0, 'no active acceptors';
$daemon->start;
is scalar @{$daemon->acceptors}, 1, 'one active acceptor';
is $daemon->app->moniker, 'mojolicious', 'right moniker';
Expand All @@ -229,7 +229,7 @@ ok $tx->success, 'successful';
is $tx->res->code, 200, 'right status';
is $tx->res->body, 'Whatever!', 'right content';
$daemon->stop;
is scalar @{$daemon->acceptors}, 0, 'no active acceptor';
is scalar @{$daemon->acceptors}, 0, 'no active acceptors';
$tx = $ua->inactivity_timeout(0.5)
->get("http://127.0.0.1:$port/throttle2" => {Connection => 'close'});
ok !$tx->success, 'not successful';
Expand All @@ -250,15 +250,15 @@ SKIP: {
listen => ["http://127.0.0.1:$port"],
silent => 1
)->start;
ok !Mojo::IOLoop->acceptor($daemon->acceptors->[0])
ok !$daemon->ioloop->acceptor($daemon->acceptors->[0])
->handle->getsockopt(SOL_SOCKET, SO_REUSEPORT),
'no SO_REUSEPORT socket option';
$daemon = Mojo::Server::Daemon->new(
listen => ["http://127.0.0.1:$port?reuse=1"],
silent => 1
);
$daemon->start;
ok !!Mojo::IOLoop->acceptor($daemon->acceptors->[0])
ok $daemon->ioloop->acceptor($daemon->acceptors->[0])
->handle->getsockopt(SOL_SOCKET, SO_REUSEPORT),
'SO_REUSEPORT socket option';
}
Expand Down

0 comments on commit 81c022b

Please sign in to comment.