| 1 | package Plack::Handler::Twiggy::Prefork; | ||||||||||
| 2 | |||||||||||
| 3 | 71 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 71 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 71 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 7 | 71 | my $class = shift; | |||||||||
| 8 | 71 | bless {@_}, $class; | |||||||||
| 9 | } | ||||||||||
| 10 | |||||||||||
| 11 | 71 | ▶ | sub run { | ||||||||
|
Subroutine
run: called CC=3 SCAR=11.0
Pod
undocumented
| |||||||||||
| 12 | 71 | my ($self, $app) = @_; | |||||||||
| 13 | |||||||||||
| 14 | my $class = $ENV{SERVER_STARTER_PORT} ? | ||||||||||
| 15 | 71 | ▶ | 'Twiggy::Prefork::Server::SS' : 'Twiggy::Prefork::Server'; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 16 | 71 | eval "require $class"; | |||||||||
| 17 | 71 | ▶ | die if $@; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 18 | |||||||||||
| 19 | 71 | $class->new(%{$self})->run($app); | |||||||||
| 20 | } | ||||||||||
| 21 | |||||||||||
| 22 | |||||||||||
| 23 | 71 | 1; | |||||||||
| 24 | |||||||||||
| 25 | __END__ | ||||||||||