From d5156ebedf187d1fdc724a543842952ab764f8d7 Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Thu, 24 May 2012 05:31:24 +0200 Subject: [PATCH] Use an RLock for session locking. --- wrw/session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrw/session.py b/wrw/session.py index 1239ecd..cf2d792 100644 --- a/wrw/session.py +++ b/wrw/session.py @@ -19,7 +19,7 @@ class session(object): def __init__(self, expire = 86400 * 7): self.id = hexencode(gennonce(16)) self.dict = {} - self.lock = threading.Lock() + self.lock = threading.RLock() self.ctime = self.atime = self.mtime = int(time.time()) self.expire = expire self.dctl = set() -- 2.11.0