curl-library
Re: Cancelling cUrl process in the middle
Date: Thu, 24 Nov 2011 23:28:06 +0100 (CET)
On Wed, 23 Nov 2011, Nazim Oztahtaci wrote:
> I have a question. I try to use a timer object in my module which fires and
> calls its call-back function if my cUrl (Smtp) module cannot finish a
> process (which is sending a mail in my case). The call back function must
> remove and cancel the cUrl handler object and that's why I try to use
> multi_cleanup and easy_cleanup and then I re-initialize the easy and multi
> interfaces for re-usage in the future. However this causes memory leaks. Is
> there anyone who did a similar concept? I mean maybe there is a function or
> option which I miss?
It's really not clear to me exactly what you do and how you see a memory leak.
But no, multi_cleanup and easy_cleanup should be enough.
Can you produce a proper recipe for us that reproduces the leak with the
latest libcurl so that we can have a look?
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2011-11-24