cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Weird cookie files

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 11 Feb 2011 22:56:01 +0100 (CET)

On Fri, 11 Feb 2011, MigueL DíaZ wrote:

> -rw-rw-r-- 1 user group 857 Feb 11 21:16 ??|????
> -rw-rw-r-- 1 user group 857 Feb 11 21:16 ???????
> -rw-rw-r-- 1 user group 857 Feb 11 21:16 0@???>???
> -rw-rw-r-- 1 user group 857 Feb 11 21:16 0.43.channel.facebook.com:80
> -rw-rw-r-- 1 user group 857 Feb 11 21:16 49.19
> -rw-rw-r-- 1 user group 857 Feb 11 21:16 8@???>???
> -rw-rw-r-- 1 user group 857 Feb 11 21:16 @Ä·?cebook.com:80
> -rw-rw-r-- 1 user group 857 Feb 11 21:16 P?|?

Try "ls --full-time" to get the full timestamp of the files, and perhaps you
can spot which run or action each file is associated with. Otherwise I suggest
you use strace or similar to track exactly when the files are created and then
try to figure out during what phase in your code it is.

I've not seen something like this reported before and I can't really see how
libcurl can cause this to happen - but I've been surprised before!

> 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...

-- 
  / daniel.haxx.se

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