line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# Copyrights 2013-2020 by [Mark Overmeer]. |
2
|
|
|
|
|
|
|
# For other contributors see ChangeLog. |
3
|
|
|
|
|
|
|
# See the manual pages for details on the licensing terms. |
4
|
|
|
|
|
|
|
# Pod stripped from pm file by OODoc 2.02. |
5
|
|
|
|
|
|
|
# This code is part of distribution Any-Daemon-HTTP. Meta-POD processed |
6
|
|
|
|
|
|
|
# with OODoc into POD and HTML manual-pages. See README.md |
7
|
|
|
|
|
|
|
# Copyright Mark Overmeer. Licensed under the same terms as Perl itself. |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
package Any::Daemon::FCGI; |
10
|
1
|
|
|
1
|
|
608
|
use vars '$VERSION'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
50
|
|
11
|
|
|
|
|
|
|
$VERSION = '0.30'; |
12
|
|
|
|
|
|
|
|
13
|
1
|
|
|
1
|
|
4
|
use parent 'IO::Socket::IP'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
6
|
|
14
|
|
|
|
|
|
|
|
15
|
1
|
|
|
1
|
|
17569
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
32
|
|
16
|
1
|
|
|
1
|
|
4
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
20
|
|
17
|
|
|
|
|
|
|
|
18
|
1
|
|
|
1
|
|
5
|
use Log::Report 'any-daemon-http'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
10
|
|
19
|
|
|
|
|
|
|
|
20
|
1
|
|
|
1
|
|
838
|
use Any::Daemon::FCGI::ClientConn (); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
94
|
|
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub new(%) |
24
|
0
|
|
|
0
|
1
|
|
{ my ($class, %args) = @_; |
25
|
0
|
|
0
|
|
|
|
$args{Listen} ||= 5; |
26
|
0
|
|
0
|
|
|
|
$args{Proto} ||= 'tcp'; |
27
|
0
|
|
|
|
|
|
$class->SUPER::new(%args); |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
#---------------- |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
#---------------- |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub accept(;$) |
35
|
0
|
|
|
0
|
1
|
|
{ my $self = shift; |
36
|
0
|
|
0
|
|
|
|
my $pkg = shift // 'Any::Daemon::FCGI::ClientConn'; |
37
|
0
|
|
|
|
|
|
$self->SUPER::accept($pkg); |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
1; |