Re: [Libevent-users] Memory won't be freed in SSL connection.

2011-03-08 Thread Nick Mathewson
2011/3/8 林宇舜 Yu-Shun Lin : > Thanks for your reply. > > My sample code is like as yours. > I have try some release functions are mentioned in Openssl faq > (http://www.openssl.org/support/faq.html#PROG13) , but nothing improve. > > The memory usage is different between 'summary of valgrind' and 'to

Re: [Libevent-users] Memory won't be freed in SSL connection.

2011-03-07 Thread 林宇舜 Yu-Shun Lin
Thanks for your reply. My sample code is like as yours. I have try some release functions are mentioned in Openssl faq ( http://www.openssl.org/support/faq.html#PROG13) , but nothing improve. The memory usage is different between 'summary of valgrind' and 'top'. And I cannot locate the 'lost' mem

Re: [Libevent-users] Memory won't be freed in SSL connection.

2011-03-07 Thread Nick Mathewson
2011/2/21 林宇舜 Yu-Shun Lin : > Hi all, > > I construct SSL connection by using >   bev1 = bufferevent_socket_new(... fd ..., BEV_OPT_CLOSE_ON_FREE) >   bev2 = bufferevent_openssl_filter_new(... bev ..., BEV_OPT_CLOSE_ON_FREE) >   bufferevent_setcb(bev2, read_cb, ..., event_cb...) > And close connect

[Libevent-users] Memory won't be freed in SSL connection.

2011-02-21 Thread 林宇舜 Yu-Shun Lin
Hi all, I construct SSL connection by using bev1 = bufferevent_socket_new(... fd ..., BEV_OPT_CLOSE_ON_FREE) bev2 = bufferevent_openssl_filter_new(... bev ..., BEV_OPT_CLOSE_ON_FREE) bufferevent_setcb(bev2, read_cb, ..., event_cb...) And close connection by bufferevent_free(bev) in event cal