Commit Graph

7 Commits (2277d974581225574cc139b4c14bc9e18182512a)

Author SHA1 Message Date
Stéphane Bidoul 2277d97458 session_db: improve cursor release 2023-02-10 19:59:59 +01:00
Stéphane Bidoul b13029ab08 session_db: cosmetics 2023-02-10 19:36:00 +01:00
Stéphane Bidoul 8023bff1b6 session_db: gevent and thread support
There were concurrency issues in evented mode.
So while I was at it, I added support for threaded mode too.
2023-02-10 19:36:00 +01:00
Stéphane Bidoul 018b664940 session_db: improve resiliency to database errors
Retry on OperationalError exception, which we receive on database restart.
Return cursor to pool when reconnecting.
2023-01-23 09:27:31 +01:00
Stéphane Bidoul 42f7db536a session_db: do not update write_date on get
The upstream FilesystemSessionStore does not do that.
2023-01-19 10:20:11 +01:00
Stéphane Bidoul b68adf53a2 session_db: use SESSION_LIFETIME constant 2023-01-19 10:20:11 +01:00
Stéphane Bidoul 6ff5bb8e03 [MIG] session_db to 16.0 2023-01-19 10:20:11 +01:00