Proposal for actory method for DNS resolvers

Emmanuel Rodriguez emmanuel.rodriguez at gmail.com
Tue Feb 8 21:12:42 CET 2011


Hi,

I implemented a very simple DNS cache for AnyEvent [1] and I have some
troubles creating an original DNS instance the same way as
AnyEvent::DNS does.

It would greatly help me if the code of AnyDNS::resolver() would be
split in two:
 - the resolver singleton call
 - the construction of an instance (factory method)

I create the RT ticket 65250 [2]that proposes a patch but I have a
feeling that RT is not being looked at.

Since I mentioned RT, there's also there another patch that fixes a
bug with weak references that can get undef in the main resolver
instance is destroyed before the callback is called [3].

[1] http://search.cpan.org/perldoc?AnyEvent::CacheDNS
[2] https://rt.cpan.org/Public/Bug/Display.html?id=65250
[3] https://rt.cpan.org/Public/Bug/Display.html?id=65251

-- 
Emmanuel Rodriguez



More information about the anyevent mailing list