| blib/lib/App/HTTP_Proxy_IMP/Relay.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 0 | 60 | 0.0 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 31 | 0 | 0 | 0 | $upstream and not ref $upstream |
| 60 | 0 | 0 | 0 | $exit_if_no_relays and not $self->relays |
| 215 | 0 | 0 | 0 | $_ and $_->close |
| 233 | 0 | 0 | 0 | $fo and $fo->{'fd'} |
| 248 | 0 | 0 | 0 | $conn and $conn->open_requests |
| 388 | 0 | 0 | 0 | $self->{'status'} & $stat and not $force |
| 391 | 0 | 0 | 0 | $write and $self->{'wbuf'} ne '' |
| 467 | 0 | 0 | 0 | $self->{'wbuf'} ne '' and not $self->{'wsrc'}{$from}++ |
| 550 | 0 | 0 | 0 | not $n and $self->{'rbuf'} ne '' |
| 560 | 0 | 0 | 0 | $self->{'fd'} and $reconnect || ($self->{'host'} || '' ne "$host.$port") |
| line | l | !l | condition |
|---|---|---|---|
| 117 | 0 | 0 | $self->{'conn'} && $self->{'conn'}->id || 'noid' |
| 124 | 0 | 0 | $self->{'conn'} && $self->{'conn'}->id || 'noid' |
| 268 | 0 | 0 | $fds->[$i]{'status'} || 0 |
| 428 | 0 | 0 | $self->{'rsub'} ||= sub { _read($self); } |
| 441 | 0 | 0 | $self->{'wsub'} ||= sub { _writebuf($self); } |
| 461 | 0 | 0 | _writebuf($self, $from) // (return) |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 34 | 0 | 0 | 0 | $1 || $2 |
| 131 | 0 | 0 | 0 | $self->{'fds'}[$to] ||= 'App::HTTP_Proxy_IMP::Relay::FD'->new($to, undef, $self) |
| 484 | 0 | 0 | 0 | $!{'EINTR'} or $!{'EAGAIN'} |
| 523 | 0 | 0 | 0 | $!{'EINTR'} or $!{'EAGAIN'} |
| 560 | 0 | 0 | 0 | $reconnect || ($self->{'host'} || '' ne "$host.$port") |
| 657 | 0 | 0 | 0 | inet_pton(2, $host) or inet_pton(10, $host) |