cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Weird cookie files

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Fri, 11 Feb 2011 14:07:07 -0800

On Fri, Feb 11, 2011 at 10:56:01PM +0100, Daniel Stenberg wrote:
> On Fri, 11 Feb 2011, MigueL DíaZ wrote:
> >My app setups an easy handle for each user with a COOKIEFILE and a
> >COOKIEJAR, and they are created correctly, I also add a share
> >handle with its own mutex.
>
> The cookiejar file is only written to disk when you call
> curl_easy_cleanup() on the handle...

It almost looks like the file name strings are being corrupted between
the time of them being set and used at shutdown of the handle. But
modern libcurls make a local copy of those strings, so that's unlikely
to be it. Perhaps they are being corrupted before they're even set.

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-02-11