line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package CGI::Application::FastCGI; |
2
|
1
|
|
|
1
|
|
39857
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
40
|
|
3
|
1
|
|
|
1
|
|
6
|
use base qw (CGI::Application); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
1279
|
|
4
|
1
|
|
|
1
|
|
9014
|
use FCGI; |
|
1
|
|
|
|
|
1158
|
|
|
1
|
|
|
|
|
29
|
|
5
|
1
|
|
|
1
|
|
2333
|
use CGI; |
|
1
|
|
|
|
|
15302
|
|
|
1
|
|
|
|
|
8
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.02'; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub run { |
10
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
11
|
0
|
|
|
|
|
|
my $request = FCGI::Request(); |
12
|
0
|
|
|
|
|
|
$self->fastcgi($request); |
13
|
0
|
|
|
|
|
|
while ($request->Accept >= 0) { |
14
|
0
|
|
|
|
|
|
$self->reset_query; |
15
|
0
|
|
|
|
|
|
$self->SUPER::run; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub reset_query { |
20
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
21
|
0
|
|
|
|
|
|
CGI::_reset_globals(); |
22
|
0
|
|
|
|
|
|
$self->{__QUERY_OBJ} = $self->cgiapp_get_query; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub fastcgi { |
26
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
27
|
0
|
0
|
|
|
|
|
@_ ? $self->{__FASTCGI} = shift : $self->{__FASTCGI}; |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
1; |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
__END__ |