Commit Graph

7 Commits (69868a84eb2bac60c11efc34346441523ab7a241)

Author SHA1 Message Date
Stéphane Bidoul 69868a84eb session_db: improve cursor release 2024-09-17 15:51:09 +02:00
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