From 6e7f70763b1df5d5120fac9f7b77f9579d8869d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20Kro=CC=88ker?= Date: Sun, 17 Dec 2023 10:39:20 +0100 Subject: [PATCH] reduce timeout --- dictdatabase/locking.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dictdatabase/locking.py b/dictdatabase/locking.py index ef76169..498bc39 100644 --- a/dictdatabase/locking.py +++ b/dictdatabase/locking.py @@ -12,7 +12,7 @@ # Constants SLEEP_TIMEOUT = 0.001 * 1 # (ms) -LOCK_KEEP_ALIVE_TIMEOUT = 0.001 * 0.1 # (ms) +LOCK_KEEP_ALIVE_TIMEOUT = 0.001 * 0.08 # (ms) # Duration to wait updating the timestamp of the lock file ALIVE_LOCK_REFRESH_INTERVAL_NS = 1_000_000_000 * 10 # (s)