Subject: Re: [PATCH 1/4] ares_cancel(): ensure cancellation of all requests

Re: [PATCH 1/4] ares_cancel(): ensure cancellation of all requests

From: Alexander Klauer <Alexander.Klauer_at_itwm.fraunhofer.de>
Date: Mon, 08 Apr 2013 11:46:43 +0200

On 03/23/2013 03:12 PM, Daniel Stenberg wrote:
> On Thu, 21 Mar 2013, Alexander Klauer wrote:
>
>> Implementation-wise, I think I would just swap the list head in the
>> ares channel with an empty list head on the stack, and then start
>> walking through the list with the list head on the stack. Any new
>> requests would then be added to the now initially empty list in the
>> ares channel.
>
> I think this sounds like a really sane approach that is uncomplicated,
> gives no surprises to a user and is easy to document as well.

OK then, I'll implement it this way.

Alexander
Received on 2013-04-08