20559: Trim session count explicitly instead of using LRU cache. 20559-dav-concurrent-writes
authorTom Clegg <tom@curii.com>
Fri, 30 Jun 2023 14:28:38 +0000 (10:28 -0400)
committerTom Clegg <tom@curii.com>
Fri, 30 Jun 2023 14:28:38 +0000 (10:28 -0400)
commitd7aa8eaa8c07fd7bcf219468afa733e0c27ffd98
tree3e70a386336868ab3a26ce882113fac4c16b15a5
parent8772ee6a857973d1cac026b2185cd1e3d56a292d
20559: Trim session count explicitly instead of using LRU cache.

The LRU cache automatically implemented the session count limit by
dropping the oldest session, which would break our "one session per
token" rule (by evicting a session and creating a new one while the
old session was still in use) when there were more active sessions
than the configured limit.

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>
services/keep-web/cache.go