Commits

Anonymous committed be1a2f9

Easy on the CPU for file-based sessions locking

Comments (0)

Files changed (1)

cherrypy/lib/filter/sessionfilter.py

             except OSError:
                 if time.time() - startTime > sess.deadlockTimeout:
                     raise SessionDeadlockError()
+                time.sleep(0.5)
             else:
                 os.close(lockfd) 
                 break