Subject: Re: How to cancel a single gethostbyname request without canceling any others?

Re: How to cancel a single gethostbyname request without canceling any others?

From: Vitaly Kruglikov <Vitaly.Kruglikov_at_palm.com>
Date: Tue, 13 Jul 2010 12:26:52 -0700

>>>>
Message: 3
Date: Mon, 12 Jul 2010 18:10:56 +0200 (CEST)
From: Daniel Stenberg <daniel_at_haxx.se>
To: c-ares hacking <c-ares_at_cool.haxx.se>
Subject: Re: How to cancel a single gethostbyname request without
        canceling any others?
Message-ID: <alpine.DEB.2.00.1007121809160.6011_at_tvnag.unkk.fr>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed

On Wed, 7 Jul 2010, Vitaly Kruglikov wrote:

> My program starts multiple ares_gethostbyname() requests, but then needs to
> cancel a specific one (because the corresponding transaction was canceled by
> user), while letting other requests continue to be processed on the same
> channel. Is this possible without resorting to multiple channels? I like
> the efficiency of being able to share the same channel. I didn't find it in
> the online doc, but would like to know if such a feature may be in the
> works?

No, I can't see any way to do this. I consider it a shortcoming, but it's not
easily fixed without changing the API for ares_gethostbyname() and adding a
new function similar to ares_cancel() but for a specific query.

--
  / daniel.haxx.se
<<<<
Is this something that you plan to tackle, and if so, when?
Thank you,
Vitaly
Received on 2010-07-13