On Tue, Dec 9, 2008 at 21:53, Peter Vajgel <[EMAIL PROTECTED]> wrote: > The evhttp_write event never gets called and the requests on this connection > never get freed. What happens instead is that in a very short time we run > out of memory, the system starts to swap out and the server is unresponsive.
I have the same issue. There is definetely a memory leak at evhttp when connectins is broken. It's easy to spot it using valgrind. As a workaround I free the structure by hand. To acheive this in routine called by libevent.evhttp_connection_set_closecb I schedule callback to be executed in 1ms. In this callback I run libevent.evhttp_connection_free Cheers Marek Majkowski _______________________________________________ Libevent-users mailing list Libevent-users@monkey.org http://monkeymail.org/mailman/listinfo/libevent-users