diff options
author | Simon Rettberg | 2023-05-22 17:55:34 +0200 |
---|---|---|
committer | Simon Rettberg | 2023-05-22 17:55:34 +0200 |
commit | 9676ee4761dcaa0d16431a991e9aea324eea4de1 (patch) | |
tree | d05b3514690a0a7d09a7ab9ba5a37eb6a82811e4 /dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/JsonHttpListener.java | |
parent | [docker] Fix nullpointer on invalid containers (diff) | |
download | tutor-module-9676ee4761dcaa0d16431a991e9aea324eea4de1.tar.gz tutor-module-9676ee4761dcaa0d16431a991e9aea324eea4de1.tar.xz tutor-module-9676ee4761dcaa0d16431a991e9aea324eea4de1.zip |
[server] Add one second timeout to cache updates
Since the caches are also accessed in some more timing-sensitive
contexts, e.g. when a client requests launch data for a lecture, we
should make sure a cache update, in case the data is stale, doesn't take
too long. If the update doesn't complete within a second, we return the
old, stale data.
The actual cache update will still keep running in the background though
and if successful, update the cache.
Diffstat (limited to 'dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/JsonHttpListener.java')
0 files changed, 0 insertions, 0 deletions