line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Furl::ConnectionCache; |
2
|
45
|
|
|
45
|
|
353
|
use strict; |
|
45
|
|
|
|
|
85
|
|
|
45
|
|
|
|
|
1247
|
|
3
|
45
|
|
|
45
|
|
210
|
use warnings; |
|
45
|
|
|
|
|
81
|
|
|
45
|
|
|
|
|
1247
|
|
4
|
45
|
|
|
45
|
|
21223
|
use utf8; |
|
45
|
|
|
|
|
516
|
|
|
45
|
|
|
|
|
215
|
|
5
|
|
|
|
|
|
|
|
6
|
32
|
|
|
32
|
0
|
2942
|
sub new { bless [''], shift } |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub steal { |
9
|
57
|
|
|
57
|
0
|
249
|
my ($self, $host, $port) = @_; |
10
|
57
|
100
|
|
|
|
409
|
if ($self->[0] eq "$host:$port") { |
11
|
26
|
|
|
|
|
63
|
my $sock = $self->[1]; |
12
|
26
|
|
|
|
|
57
|
@{$self} = (''); |
|
26
|
|
|
|
|
170
|
|
13
|
26
|
|
|
|
|
100
|
return $sock; |
14
|
|
|
|
|
|
|
} else { |
15
|
31
|
|
|
|
|
166
|
return undef; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub push { |
20
|
41
|
|
|
41
|
0
|
163
|
my ($self, $host, $port, $sock) = @_; |
21
|
41
|
|
|
|
|
150
|
$self->[0] = "$host:$port"; |
22
|
41
|
|
|
|
|
167
|
$self->[1] = $sock; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
1; |
26
|
|
|
|
|
|
|
|