[Reconnoiter-devel] [patch] libcurl based http module

Paul Querna paul at querna.org
Fri Sep 11 17:11:41 EDT 2009

On Fri, Sep 11, 2009 at 5:14 AM, Theo Schlossnagle <jesus at omniti.com> wrote:
> On Sep 10, 2009, at 4:54 AM, Paul Querna wrote:
>> The only change outside of build changes and http.c itself, was the
>> removing of a free() inside Eventer.  This use case seems to stem from
>> serf not correctly using the eventer API, and since curl actually
>> always removes its sockets correctly, this was causing me a double
>> free in some cases.  I think (and memory leak checkers agree with me
>> so far that I've seen), this can safely be removed.
> That free inside the eventer seems needed.  The long long story in there
> wasn't explaining the free, it was explaining the master_fds[e->fd].e =
> The call back functions (both time and activity) should not have to free
> their own events.  If they return 0, it means that they no longer need the
> event and libeventer will perform the free for them.  This change seems to
> break that usage (which permeates everything).  I've no idea why a memory
> checker doesn't flag that.  This exact code exists in each of the other
> schedulers, so we'll need to get a deep grasp of this change before allowing
> it to metastasize.
>> Thoughts on anything that needs to be done to include this in trunk?
> Aside from the eventer change -- it looks pretty good.

cleaned up patch with fixed eventer cleanups is at:

More information about the Reconnoiter-devel mailing list