line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Coro::PatchSet::LWP; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
9
|
use strict; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
48
|
|
4
|
2
|
|
|
2
|
|
930
|
use Coro::Select; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
BEGIN { |
6
|
|
|
|
|
|
|
eval { |
7
|
|
|
|
|
|
|
*IO::Socket::SSL::tie = sub{}; # prevent overriding of our tie mechanism |
8
|
|
|
|
|
|
|
require IO::Socket::SSL; |
9
|
|
|
|
|
|
|
}; |
10
|
|
|
|
|
|
|
# for those who want to use LWP::Protocol::socks |
11
|
|
|
|
|
|
|
$IO::Socket::Socks::SOCKET_CLASS = Coro::LWP::Socket::; |
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
use Coro::LWP; |
14
|
|
|
|
|
|
|
use Coro::PatchSet::Handle; |
15
|
|
|
|
|
|
|
use Coro::PatchSet::Socket; |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
our $VERSION = '0.12'; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
for (@Net::HTTP::ISA, @Net::FTP::ISA, @Net::NTTP::ISA) { |
20
|
|
|
|
|
|
|
$_ = Coro::LWP::Socket:: |
21
|
|
|
|
|
|
|
if $_ eq IO::Socket::INET6:: || $_ eq IO::Socket::IP::; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
$IO::Socket::SSL::ISA[0] = Coro::LWP::Socket:: if IO::Socket::SSL->can('new'); |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
__END__ |