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

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

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 23 Mar 2013 15:12:48 +0100 (CET)

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.

-- 
  / daniel.haxx.se
Received on 2013-03-23