Skip Menu |

This queue is for tickets about the IO-Async CPAN distribution.

Report information
The Basics
Id: 103446
Status: resolved
Priority: 0/
Queue: IO-Async

People
Owner: Nobody in particular
Requestors: leonerd-cpan [...] leonerd.org.uk
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.65
Fixed in: 0.66



Subject: $loop->set_resolver doesn't ->add the resolver
So e.g. the SYNOPSIS code in IO::Async::Resolver::StupidCache doesn't actually work. It dies on the first attempt by the resolver to perform $self->loop->time -- Paul Evans
Subject: rt103446.patch
=== modified file 'lib/IO/Async/Loop.pm' --- lib/IO/Async/Loop.pm 2015-04-04 12:30:17 +0000 +++ lib/IO/Async/Loop.pm 2015-04-10 19:37:26 +0000 @@ -1089,6 +1089,8 @@ for qw( resolve getaddrinfo getnameinfo ); $self->{resolver} = $resolver; + + $self->add( $resolver ); } =head2 @result = $loop->resolve( %params )->get === modified file 't/50resolver.t' --- t/50resolver.t 2015-02-20 13:39:00 +0000 +++ t/50resolver.t 2015-04-10 19:37:26 +0000 @@ -368,6 +368,8 @@ my $callcount = 0; { package MockResolver; + use base qw( IO::Async::Notifier ); + sub new { bless {}, shift } sub resolve {
Released in 0.66 -- Paul Evans