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: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 12 Jul 2010 18:10:56 +0200 (CEST)

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
Received on 2010-07-12