Commit Graph

6 Commits (71352e0496a93b73b9f5e67a0289511da8d08cd3)

Author SHA1 Message Date
Stéphane Bidoul 71352e0496 session_db: cosmetics 2024-09-17 15:51:09 +02:00
Stéphane Bidoul 182d44f26c 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.
2024-09-17 15:51:09 +02:00
Stéphane Bidoul d49c69102f session_db: improve resiliency to database errors
Retry on OperationalError exception, which we receive on database restart.
Return cursor to pool when reconnecting.
2024-09-17 15:51:09 +02:00
Stéphane Bidoul 5109801f80 session_db: do not update write_date on get
The upstream FilesystemSessionStore does not do that.
2024-09-17 15:51:09 +02:00
Stéphane Bidoul 87be2eca29 session_db: use SESSION_LIFETIME constant 2024-09-17 15:51:09 +02:00
Stéphane Bidoul c53859a3c3 [MIG] session_db to 16.0 2024-09-17 15:51:09 +02:00