From: Fredrik Tolf Date: Thu, 24 May 2012 03:31:24 +0000 (+0200) Subject: Use an RLock for session locking. X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=d5156ebedf187d1fdc724a543842952ab764f8d7;p=wrw.git Use an RLock for session locking. --- 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()