changelog
- 19 months ago
- by Armin Ronacher <armin.ronacher@active-4.com> [Mon, 18 Oct 2010 14:04:24 +0200] rev 1088
- This is an ex repo
- 20 months ago
- by Armin Ronacher <armin.ronacher@active-4.com> [Thu, 16 Sep 2010 21:16:57 +0200] rev 1087
- Fixed a cookie parsing bug. This fixes #473
- 20 months ago
- by Armin Ronacher <armin.ronacher@active-4.com> [Thu, 16 Sep 2010 20:49:35 +0200] rev 1086
- Fixed a typo that broke a test and multiple cookies in test client
- 20 months ago
- by Thomas Waldmann <tw AT waldmann-edv DOT de> [Thu, 02 Sep 2010 14:42:57 +0200] rev 1085
- FileSystemCache: use atomic rename to update cache, fixes concurrency issues
If one read the cache while another process was updating it, reading likely
failed (and get() returned None due to exception being catched). This can be
avoided if writing happens to a temporary file which gets atomically renamed
to the real file afterwards, so the real cache file always has valid/complete
contents.
Aside from that, this maybe also avoids file sharing problems (esp. on win32).
_list_dir() now filters out potentially left over temporary files (which are
created in cache directory to avoid crossing filesystem borders).
Note: code was mostly copied from (filesystem based) sessions code, which had
same issues some time ago, but was already fixed.
added tests for FileSystemCache.set/get
- 20 months ago
- by Thomas Waldmann <tw AT waldmann-edv DOT de> [Thu, 02 Sep 2010 14:08:39 +0200] rev 1084
- fix FileSystemCache.clear() confusing cache key vs. cache filename
using a new internal method _list_dir() now to get a list of cache filenames
(absolute filenames). this method will also be used later to filter out
the temp files we will need when updating the cache using a tempfile and
a atomic rename.
added a test for FileSystemCache.clear()
- 20 months ago
- by Thomas Waldmann <tw AT waldmann-edv DOT de> [Thu, 02 Sep 2010 13:29:42 +0200] rev 1083
- cache: improve docstrings, use open() instead of file()
- 20 months ago
- by Armin Ronacher <armin.ronacher@active-4.com> [Thu, 02 Sep 2010 13:25:29 +0200] rev 1082
- Documented last changeset.
- 20 months ago
- by Thomas Waldmann <tw AT waldmann-edv DOT de> [Thu, 02 Sep 2010 12:23:08 +0200] rev 1081
- fix FileSystemCache._prune issues, see below
fixed confusion of cache keys with fs cache filenames
added 'rb' file opening mode
made sure the file gets closed in all cases (this is especially important
for some platforms if we want to remove that file)
added a test for the _prune code
- 21 months ago
- by Armin Ronacher <armin.ronacher@active-4.com> [Sun, 15 Aug 2010 13:42:35 +0200] rev 1080
- Meh
- 21 months ago
- by Armin Ronacher <armin.ronacher@active-4.com> [Sun, 15 Aug 2010 13:32:46 +0200] rev 1079
- That should be a ref of course