ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent/lib/AnyEvent.pm
(Generate patch)

Comparing AnyEvent/lib/AnyEvent.pm (file contents):
Revision 1.381 by root, Thu Sep 1 22:09:25 2011 UTC vs.
Revision 1.382 by root, Thu Sep 1 23:46:26 2011 UTC

1237 1237
1238use Carp (); 1238use Carp ();
1239 1239
1240our $VERSION = '6.02'; 1240our $VERSION = '6.02';
1241our $MODEL; 1241our $MODEL;
1242
1243our @ISA; 1242our @ISA;
1244
1245our @REGISTRY; 1243our @REGISTRY;
1246
1247our $VERBOSE; 1244our $VERBOSE;
1245our $MAX_SIGNAL_LATENCY = 10;
1246our %PROTOCOL; # (ipv4|ipv6) => (1|2), higher numbers are preferred
1248 1247
1249BEGIN { 1248BEGIN {
1250 require "AnyEvent/constants.pl"; 1249 require "AnyEvent/constants.pl";
1251 1250
1252 eval "sub TAINT (){" . (${^TAINT}*1) . "}"; 1251 eval "sub TAINT (){" . (${^TAINT}*1) . "}";
1261 if ${^TAINT}; 1260 if ${^TAINT};
1262 1261
1263 # $ENV{PERL_ANYEVENT_xxx} now valid 1262 # $ENV{PERL_ANYEVENT_xxx} now valid
1264 1263
1265 $VERBOSE = length $ENV{PERL_ANYEVENT_VERBOSE} ? $ENV{PERL_ANYEVENT_VERBOSE}*1 : 3; 1264 $VERBOSE = length $ENV{PERL_ANYEVENT_VERBOSE} ? $ENV{PERL_ANYEVENT_VERBOSE}*1 : 3;
1266}
1267 1265
1268our $MAX_SIGNAL_LATENCY = 10;
1269
1270our %PROTOCOL; # (ipv4|ipv6) => (1|2), higher numbers are preferred
1271
1272{
1273 my $idx; 1266 my $idx;
1274 $PROTOCOL{$_} = ++$idx 1267 $PROTOCOL{$_} = ++$idx
1275 for reverse split /\s*,\s*/, 1268 for reverse split /\s*,\s*/,
1276 $ENV{PERL_ANYEVENT_PROTOCOLS} || "ipv4,ipv6"; 1269 $ENV{PERL_ANYEVENT_PROTOCOLS} || "ipv4,ipv6";
1277} 1270}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines