New issue 125 by toby.o.h.white: FileCache is not thread/multiprocess safe
http://code.google.com/p/httplib2/issues/detail?id=125
As noted in the comment in the file, the FileCache may not behave well in
the presence of many threads/processes all writing to the same cache.
The patch attached fixes this (at least for POSIX systems).
Attachments:
atomic-cache.patch 5.5 KB
Comment #1 on issue 125 by joe.gregorio: FileCache is not
thread/multiprocess safe
http://code.google.com/p/httplib2/issues/detail?id=125
Looks good, have you tested this under windows?
Sorry, no - and I won't be likely to any time soon, I'm afraid. In
principle it should work, it just won't be thread safe on Windows - but the
existing cache isn't anyway, so it oughtn't to be any worse. Untested,
though.
Toby
Comment #3 on issue 125 by joe.gregorio: FileCache is not
thread/multiprocess safe
http://code.google.com/p/httplib2/issues/detail?id=125
(No comment was entered for this change.)