AnyEvent
view release on metacpan or search on metacpan
v4mapped and v4compat addresses.
- provide more documentation for the resolver class.
- really replace longest run of :0: by :: in format_address,
also properly convert :: and ::1 again.
- support NAPTR record name and decode it.
- implement random weight sampling for SRV records, as per
rfc 2782.
- correctly abort on srv-record targets of ".".
- added AnyEvent::DNS::wait_for_slot.
- in the unlikely event of a virtual circuit connection
being invalidated by a delayed udp reply, AnyEvent::DNS
could die. this has been fixed.
- plug a probable memleak in the DNS vc code.
- use configured timeout also for VC request phase.
- implement timeout and max_outstanding methods
for resolver class.
- update version numbers in all modules.
4.1 Thu May 29 05:45:40 CEST 2008
- INCOMPATIBLE CHANGE: renamed xxx_ip functions to xxx_address
which mirrors their purpose better (old names still available
lib/AnyEvent/DNS.pm view on Meta::CPAN
$NOW = time;
# timeout, try next
&$do_retry if $do_retry;
}), sub {
my ($res) = @_;
if ($res->{tc}) {
# success, but truncated, so use tcp
AnyEvent::Socket::tcp_connect (AnyEvent::Socket::format_address ($server), DOMAIN_PORT, sub {
return unless $do_retry; # some other request could have invalidated us already
my ($fh) = @_
or return &$do_retry;
require AnyEvent::Handle;
my $handle; $handle = new AnyEvent::Handle
fh => $fh,
timeout => $timeout,
on_error => sub {
undef $handle;
return unless $do_retry; # some other request could have invalidated us already
# failure, try next
&$do_retry;
};
$handle->push_write (pack "n/a*", $req->[0]);
$handle->push_read (chunk => 2, sub {
$handle->unshift_read (chunk => (unpack "n", $_[1]), sub {
undef $handle;
$self->_feed ($_[1]);
});
( run in 0.502 second using v1.01-cache-2.11-cpan-a5abf4f5562 )