Re: [Libevent-users] Free buffer of a http request

2012-09-06 Thread Bruno Avila
Hi Nick, Thanks for the response. Here is a follow up. The evhttp_make_request procedure is used several times on the same connection (http persistance). In this case, is the request structure freed when I make a new request using the same connection? I do not own the request. After several reque

Re: [Libevent-users] Free buffer of a http request

2012-09-06 Thread Nick Mathewson
On Thu, Sep 6, 2012 at 1:13 PM, Bruno Avila wrote: > Hi, > > Once I make an evhttp request (e.g. GET) and read the content from the > evbuffer, which buffers of struct evhttp_request should I free? Or is done > transparently by libevent? When the request is freed, its buffers should get freed too

[Libevent-users] Free buffer of a http request

2012-09-06 Thread Bruno Avila
Hi, Once I make an evhttp request (e.g. GET) and read the content from the evbuffer, which buffers of struct evhttp_request should I free? Or is done transparently by libevent? Thanks, Bruno