[Libevent-users] [Patch] evhttp fix
Niels Provos
provos at citi.umich.edu
Sat May 12 03:13:25 EDT 2007
Thank you.
I submitted the patch.
Niels.
On 5/11/07, Ben Rigas <ben.rigas at interoptechnologies.com> wrote:
> We had an issue where we needed to evhttp_conneciton_free() inside
> the response callback, which caused an error with line 617 of http.c
>
> /* notify the user of the request */
> (*req->cb)(req, req->cb_arg);
>
> /* if this was an outgoing request, we own and it's done. so
> free it */
> if (evcon->flags & EVHTTP_CON_OUTGOING) {
> evhttp_request_free(req);
> }
>
> Since evcon was free'd in the callback, we got the error.
> My solution was to store the result of evcon->flags &
> EVHTTP_CON_OUTGOING before we make the callback.
>
>
>
> -Ben
>
>
> --
> Ben Rigas
> Senior Software Engineer, InterOP Technologies
> (239) 425-3000
>
>
>
> _______________________________________________
> Libevent-users mailing list
> Libevent-users at monkey.org
> http://monkey.org/mailman/listinfo/libevent-users
>
>
>
More information about the Libevent-users
mailing list