[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



On Sat, Apr 3, 2010 at 1:35 PM, Frank Denis <libevent@xxxxxxxxxxxx> 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 loop
before the connection has been closed.  evhttp_free is not responsible
for cleaning up in those cases.

Niels.
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.