3kwa / cherrys

Redis backend for CherryPy sessions
21 stars 7 forks source link

Check for session to be locked for i/o; session lock can expire #5

Closed ralhei closed 1 year ago

ralhei commented 1 year ago

This patch adds the possibility that lock can expire, which allows to avoid that a request can hang forever. Also, the redis lock object is now used as sole source of truth for the locking state of a session. This lock state is checked before all i/o operations (same way as the FileSession in cherrypy does it).

ralhei commented 1 year ago

Thanks a lot for merging.