AnyEvent::DNS Timeout
Marc Lehmann
schmorp at schmorp.de
Fri Feb 7 02:16:17 CET 2014
On Thu, Feb 06, 2014 at 11:20:24AM -0500, James Baer <jamesfbaer at gmail.com> wrote:
> Hello - new to AE here. Is there anyway to find out if a request actually
> timed out using the resolve method?
That question is not well-defined, for the following reason: it is
possible for a request to time out, find no data and find data, all at the
same time. From a resolver standpoint, these are not distinguishable in
general.
Keep in mind that AnyEvent::DNS is a (stub) resolver, not a dns
client/debug library, so it can ask multiple servers for multiple domains
names, and timeout or nodata returns do not mean the request time outed or
found no data.
I understand that it is tempting to use AnyEvent::DNS as some kind of dns
debugging library, but that's not what it is, or was designed for.
You can send individual requests and build your own resolver using other
libraries - for example, libadns can be used via EV::ADNS, which allwos
you to send individual request without recursion to nameservers of your
choice.
--
The choice of a Deliantra, the free code+content MORPG
-----==- _GNU_ http://www.deliantra.net
----==-- _ generation
---==---(_)__ __ ____ __ Marc Lehmann
--==---/ / _ \/ // /\ \/ / schmorp at schmorp.de
-=====/_/_//_/\_,_/ /_/\_\
More information about the anyevent
mailing list