… | |
… | |
931 | no warnings; |
931 | no warnings; |
932 | use strict qw(vars subs); |
932 | use strict qw(vars subs); |
933 | |
933 | |
934 | use Carp; |
934 | use Carp; |
935 | |
935 | |
936 | our $VERSION = 4.41; |
936 | our $VERSION = 4.411; |
937 | our $MODEL; |
937 | our $MODEL; |
938 | |
938 | |
939 | our $AUTOLOAD; |
939 | our $AUTOLOAD; |
940 | our @ISA; |
940 | our @ISA; |
941 | |
941 | |
942 | our @REGISTRY; |
942 | our @REGISTRY; |
943 | |
943 | |
944 | our $WIN32; |
944 | our $WIN32; |
945 | |
945 | |
946 | BEGIN { |
946 | BEGIN { |
947 | my $win32 = ! ! ($^O =~ /mswin32/i); |
947 | eval "sub WIN32(){ " . (($^O =~ /mswin32/i)*1) ." }"; |
948 | eval "sub WIN32(){ $win32 }"; |
948 | eval "sub TAINT(){ " . (${^TAINT}*1) . " }"; |
|
|
949 | |
|
|
950 | delete @ENV{grep /^PERL_ANYEVENT_/, keys %ENV} |
|
|
951 | if ${^TAINT}; |
949 | } |
952 | } |
950 | |
953 | |
951 | our $verbose = $ENV{PERL_ANYEVENT_VERBOSE}*1; |
954 | our $verbose = $ENV{PERL_ANYEVENT_VERBOSE}*1; |
952 | |
955 | |
953 | our %PROTOCOL; # (ipv4|ipv6) => (1|2), higher numbers are preferred |
956 | our %PROTOCOL; # (ipv4|ipv6) => (1|2), higher numbers are preferred |
… | |
… | |
1337 | so on. |
1340 | so on. |
1338 | |
1341 | |
1339 | =head1 ENVIRONMENT VARIABLES |
1342 | =head1 ENVIRONMENT VARIABLES |
1340 | |
1343 | |
1341 | The following environment variables are used by this module or its |
1344 | The following environment variables are used by this module or its |
1342 | submodules: |
1345 | submodules. |
|
|
1346 | |
|
|
1347 | Note that AnyEvent will remove I<all> environment variables starting with |
|
|
1348 | C<PERL_ANYEVENT_> from C<%ENV> when it is loaded while taint mode is |
|
|
1349 | enabled. |
1343 | |
1350 | |
1344 | =over 4 |
1351 | =over 4 |
1345 | |
1352 | |
1346 | =item C<PERL_ANYEVENT_VERBOSE> |
1353 | =item C<PERL_ANYEVENT_VERBOSE> |
1347 | |
1354 | |
… | |
… | |
1953 | use AnyEvent; |
1960 | use AnyEvent; |
1954 | |
1961 | |
1955 | Similar considerations apply to $ENV{PERL_ANYEVENT_VERBOSE}, as that can |
1962 | Similar considerations apply to $ENV{PERL_ANYEVENT_VERBOSE}, as that can |
1956 | be used to probe what backend is used and gain other information (which is |
1963 | be used to probe what backend is used and gain other information (which is |
1957 | probably even less useful to an attacker than PERL_ANYEVENT_MODEL), and |
1964 | probably even less useful to an attacker than PERL_ANYEVENT_MODEL), and |
1958 | $ENV{PERL_ANYEGENT_STRICT}. |
1965 | $ENV{PERL_ANYEVENT_STRICT}. |
1959 | |
1966 | |
1960 | |
1967 | |
1961 | =head1 BUGS |
1968 | =head1 BUGS |
1962 | |
1969 | |
1963 | Perl 5.8 has numerous memleaks that sometimes hit this module and are hard |
1970 | Perl 5.8 has numerous memleaks that sometimes hit this module and are hard |