Subject: Re: Cancelling in-flight DNS request

Re: Cancelling in-flight DNS request

From: Jakub Hrozek <jhrozek_at_redhat.com>
Date: Thu, 22 May 2014 16:42:03 +0200

On Sat, Apr 19, 2014 at 08:41:34PM +0200, David Guillen Fandos wrote:
> Hello,
>
> I just wondered whether it was possible to cancel an in-flight request
> for a particular host without cancelling them all.
> For example, let's say I query two DNS requests using
> "ares_gethostbyname" and I keep looping and polling FDs. After some time
> I just decide to cancel one of the requests but still want to receive a
> response for the remaining one. Is it possible to do so? And how?
>
> Thanks!

It's not really possible at the moment. Check out this 2010 thread:
http://c-ares.haxx.se/mail/c-ares-archive-2010-07/0001.shtml
Received on 2014-05-22