line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Plack::Handler::Feersum; |
2
|
6
|
|
|
6
|
|
1324643
|
use warnings; |
|
6
|
|
|
|
|
59
|
|
|
6
|
|
|
|
|
491
|
|
3
|
6
|
|
|
6
|
|
71
|
use strict; |
|
6
|
|
|
|
|
36
|
|
|
6
|
|
|
|
|
275
|
|
4
|
6
|
|
|
6
|
|
2962
|
use Feersum::Runner; |
|
6
|
|
|
|
|
18
|
|
|
6
|
|
|
|
|
196
|
|
5
|
6
|
|
|
6
|
|
41
|
use base 'Feersum::Runner'; |
|
6
|
|
|
|
|
11
|
|
|
6
|
|
|
|
|
870
|
|
6
|
6
|
|
|
6
|
|
40
|
use Scalar::Util qw/weaken/; |
|
6
|
|
|
|
|
13
|
|
|
6
|
|
|
|
|
902
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub assign_request_handler { |
9
|
5
|
|
|
5
|
1
|
22
|
my $self = shift; |
10
|
5
|
|
|
|
|
20
|
weaken $self; |
11
|
5
|
|
|
|
|
23
|
$self->{endjinn}->psgi_request_handler(shift); |
12
|
|
|
|
|
|
|
# Plack::Loader::Restarter will SIGTERM the parent |
13
|
5
|
|
|
5
|
|
141
|
$self->{_term} = EV::signal 'TERM', sub { $self->quit }; |
|
5
|
|
|
|
|
58799
|
|
14
|
5
|
|
|
|
|
21
|
return; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub _prepare { |
18
|
5
|
|
|
5
|
|
28
|
my $self = shift; |
19
|
5
|
|
|
|
|
52
|
$self->SUPER::_prepare(@_); |
20
|
|
|
|
|
|
|
$self->{server_ready}->($self) |
21
|
5
|
50
|
|
|
|
23
|
if $self->{server_ready}; |
22
|
5
|
|
|
|
|
12
|
return; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
1; |
26
|
|
|
|
|
|
|
__END__ |