[Python-checkins] r61200 - tracker/roundup-src/roundup/cgi/client.py

martin.v.loewis python-checkins at python.org
Mon Mar 3 08:19:52 CET 2008


Author: martin.v.loewis
Date: Mon Mar  3 08:19:52 2008
New Revision: 61200

Modified:
   tracker/roundup-src/roundup/cgi/client.py
Log:
Protect all session cleaning against concurrent access.


Modified: tracker/roundup-src/roundup/cgi/client.py
==============================================================================
--- tracker/roundup-src/roundup/cgi/client.py	(original)
+++ tracker/roundup-src/roundup/cgi/client.py	Mon Mar  3 08:19:52 2008
@@ -359,9 +359,9 @@
         except ImportError:
             ProgrammingError = None
 
-        sessions.clean(now)
-        self.db.getOTKManager().clean(now)
         try:
+            sessions.clean(now)
+            self.db.getOTKManager().clean(now)
             sessions.set('last_clean', last_use=time.time())
         except ProgrammingError, err:
             response = str(err).split('\n')[0]


More information about the Python-checkins mailing list