blib/lib/Starman/Server.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 28 | 67 | 41.7 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
80 | 73 | 0 | 0 | defined $opt and lc $opt eq "ssl" |
253 | 0 | 85 | 0 | $proto and $proto eq "HTTP/1.0" |
0 | 0 | 85 | $proto and $proto eq "HTTP/1.1" | |
254 | 0 | 0 | 0 | $connection and $connection =~ /^keep-alive$/i |
263 | 85 | 0 | 0 | $connection and $connection =~ /^close$/i |
348 | 126 | 1 | 85 | $self->{'client'}{'inputbuf'} ne "" and $self->{'client'}{'inputbuf'} =~ /$Starman::Server::CR?$Starman::Server::LF$Starman::Server::CR?$Starman::Server::LF/s |
458 | 0 | 0 | 4 | $read and $read > 0 |
496 | 1 | 1 | 79 | not $status =~ /^1\d\d|[23]04$/ and $env->{'REQUEST_METHOD'} ne "HEAD" |
line | l | !l | condition |
---|---|---|---|
17 | 0 | 74 | $ENV{'STARMAN_DEBUG'} || 0 |
91 | 0 | 73 | $options->{'workers'} || 5 |
106 | 0 | 73 | $options->{'max_requests'} || 1000 |
0 | 73 | $options->{'backlog'} || 1024 | |
238 | 85 | 0 | $self->{'server'}{'peerport'} || 0 |
85 | 0 | $self->{'server'}{'sockaddr'} || 0 | |
85 | 0 | $self->{'server'}{'sockport'} || 0 | |
391 | 0 | 0 | $code || 500 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
106 | 0 | 73 | 0 | $options->{'min_servers'} || $workers |
0 | 73 | 0 | $options->{'min_spare_servers'} || $workers - 1 | |
0 | 73 | 0 | $options->{'max_spare_servers'} || $workers - 1 | |
0 | 73 | 0 | $options->{'max_servers'} || $workers | |
0 | 0 | 73 | $options->{'user'} || $> | |
0 | 0 | 73 | $options->{'group'} || $) | |
238 | 0 | 85 | 0 | $self->{'server'}{'peerhost'} || $self->{'server'}{'peeraddr'} |
353 | 0 | 41 | 86 | not defined $read or $read == 0 |
423 | 0 | 0 | 5 | not defined $read or $read == 0 |