Changeset 979
- Timestamp:
- 02/21/06 01:09:46
- Files:
-
- trunk/cherrypy/filters/sessionfilter.py (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/filters/sessionfilter.py
r978 r979 33 33 import sha 34 34 import time 35 import thread 35 36 import threading 36 37 import types … … 113 114 if cherrypy._session_last_clean_up_time + clean_up_delay < now: 114 115 cherrypy._session_last_clean_up_time = now 115 sess.session_storage.clean_up() 116 # Run clean_up function in other thread to avoid blocking 117 # this request 118 thread.start_new_thread(sess.session_storage.clean_up, (sess,)) 116 119 117 120 # Check if request came with a session ID … … 231 234 sess.locked = False 232 235 233 def clean_up(self): 234 sess = cherrypy.request._session 236 def clean_up(self, sess): 235 237 to_be_deleted = [] 236 238 now = datetime.datetime.now() … … 285 287 sess.locked = False 286 288 287 def clean_up(self): 288 sess = cherrypy.request._session 289 def clean_up(self, sess): 289 290 storagePath = cherrypy.config.get('session_filter.storage_path') 290 291 now = datetime.datetime.now() … … 391 392 self.cursor = None 392 393 393 def clean_up(self): 394 sess = cherrypy.request._session 394 def clean_up(self, sess): 395 395 now = datetime.datetime.now() 396 396 self.cursor.execute(

