Re: [Libevent-users] Memory leak with keepalive?

2010-04-03 Thread Frank Denis
Hi Niels, Thanks for your reply. Le Sat, Apr 03, 2010 at 01:55:32PM -0700, Niels Provos ecrivait : > HTTP 1/1 keeps connections open by default. You are exiting the loop > before the connection has been closed. evhttp_free is not responsible > for cleaning up in those cases. Well, the c

Re: [Libevent-users] Memory leak with keepalive?

2010-04-03 Thread Niels Provos
On Sat, Apr 3, 2010 at 1:35 PM, Frank Denis wrote: >  Apparently, when using libevent 2 in order to serve HTTP requests, > the evhttp_connection instance isn't properly released if the > "Connection: closed" header is not send. HTTP 1/1 keeps connections open by default. You are exiting the loo

[Libevent-users] Memory leak with keepalive?

2010-04-03 Thread Frank Denis
Hello, Apparently, when using libevent 2 in order to serve HTTP requests, the evhttp_connection instance isn't properly released if the "Connection: closed" header is not send. Simple test-case: #include #include void http_dispatcher_cb(struct evhttp_request * const req,