Subject: Re: c-ares re-entrancy patch, 2006-09-30

Re: c-ares re-entrancy patch, 2006-09-30

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 12 Oct 2006 18:55:03 +0200 (CEST)

On Sat, 30 Sep 2006, William Ahern wrote:

> I've updated the patch to make c-ares safe for re-entrant calls (e.g.
> destroying a c-ares object/handle from a callback). The patch is against a
> 20060930 snapshot from CVS.
>
> http://25thandClement.com/~william/c-ares-reentrant-20060930.patch

A question on the actual implementation: How can FRAME_OKAY() work reliably? I
mean, it tries to detect if the channel is freed/destroyed, doesn't it?

I'm a bit reluctant to apply this patch, as I think the implementation is
hairy and I don't see the big win.

-- 
   c-ares -- my preferred DNS asynch resolver library
Received on 2006-10-12