| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Plack::Handler::Starman; |
|
2
|
73
|
|
|
73
|
|
15096165
|
use strict; |
|
|
73
|
|
|
|
|
1176
|
|
|
|
73
|
|
|
|
|
6363
|
|
|
3
|
73
|
|
|
73
|
|
46727
|
use Starman::Server; |
|
|
73
|
|
|
|
|
182
|
|
|
|
73
|
|
|
|
|
13969
|
|
|
4
|
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
sub new { |
|
6
|
73
|
|
|
73
|
0
|
3709
|
my $class = shift; |
|
7
|
73
|
|
|
|
|
547
|
bless { @_ }, $class; |
|
8
|
|
|
|
|
|
|
} |
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub run { |
|
11
|
73
|
|
|
73
|
0
|
3815
|
my($self, $app) = @_; |
|
12
|
|
|
|
|
|
|
|
|
13
|
73
|
50
|
|
|
|
768
|
if ($ENV{SERVER_STARTER_PORT}) { |
|
14
|
0
|
|
|
|
|
0
|
require Net::Server::SS::PreFork; |
|
15
|
0
|
|
|
|
|
0
|
@Starman::Server::ISA = qw(Net::Server::SS::PreFork); # Yikes. |
|
16
|
|
|
|
|
|
|
} |
|
17
|
|
|
|
|
|
|
|
|
18
|
73
|
|
|
|
|
206
|
my %nsa; |
|
19
|
73
|
|
|
|
|
662
|
while (my($key, $value) = each %$self) { |
|
20
|
146
|
50
|
|
|
|
693
|
$key =~ s/^net_server_// or next; |
|
21
|
0
|
|
|
|
|
0
|
$nsa{$key} = $value; |
|
22
|
|
|
|
|
|
|
} |
|
23
|
73
|
50
|
|
|
|
237
|
$self->{net_server_args} = \%nsa if %nsa; |
|
24
|
|
|
|
|
|
|
|
|
25
|
73
|
|
|
|
|
584
|
Starman::Server->new->run($app, {%$self}); |
|
26
|
|
|
|
|
|
|
} |
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |
|
29
|
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
__END__ |