line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Plack::Handler::Feersum; |
2
|
6
|
|
|
6
|
|
1478192
|
use warnings; |
|
6
|
|
|
|
|
40
|
|
|
6
|
|
|
|
|
652
|
|
3
|
6
|
|
|
6
|
|
69
|
use strict; |
|
6
|
|
|
|
|
63
|
|
|
6
|
|
|
|
|
336
|
|
4
|
6
|
|
|
6
|
|
3489
|
use Feersum::Runner; |
|
6
|
|
|
|
|
16
|
|
|
6
|
|
|
|
|
204
|
|
5
|
6
|
|
|
6
|
|
50
|
use base 'Feersum::Runner'; |
|
6
|
|
|
|
|
14
|
|
|
6
|
|
|
|
|
920
|
|
6
|
6
|
|
|
6
|
|
43
|
use Scalar::Util qw/weaken/; |
|
6
|
|
|
|
|
13
|
|
|
6
|
|
|
|
|
1072
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub assign_request_handler { |
9
|
5
|
|
|
5
|
1
|
11
|
my $self = shift; |
10
|
5
|
|
|
|
|
19
|
weaken $self; |
11
|
5
|
|
|
|
|
26
|
$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
|
|
|
|
|
61501
|
|
14
|
5
|
|
|
|
|
28
|
return; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub _prepare { |
18
|
5
|
|
|
5
|
|
24
|
my $self = shift; |
19
|
5
|
|
|
|
|
74
|
$self->SUPER::_prepare(@_); |
20
|
|
|
|
|
|
|
$self->{server_ready}->($self) |
21
|
5
|
50
|
|
|
|
26
|
if $self->{server_ready}; |
22
|
5
|
|
|
|
|
23
|
return; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
1; |
26
|
|
|
|
|
|
|
__END__ |