Skip Menu |

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

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

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

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: 0.62



Subject: Allow Resolver using Net::libasyncns
Perhaps something like use IO::Async; use IO::Async::Resolver::libasyncns; would mean that the Resolver uses libasyncns instead of an IaFunction object for the getaddrinfo/getnameinfo lookups, and possibly provide res_query/res_search a.la. IaResolver::DNS. -- Paul Evans
Actually this feels far too fragile. Better would be a way to set a class for the Loop to use as a resolver, falling back on the supplied IO::Async::Resolver if not set: use IO::Async::Loop; use IO::Async::Resolver::libasyncns; my $loop = IO::Async::Loop->new( resolver_class => "IO::Async::Resolver::libasyncns" ); -- Paul Evans
Now effectively possible using IO::Async 0.62's $loop->set_resolver() combined with IO::Async::Resolver::LibAsyncNS. -- Paul Evans