Dolda2000 GitWeb
/
wrw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3464a4
)
Use an RLock for session locking.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Thu, 24 May 2012 03:31:24 +0000
(
05:31
+0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Thu, 24 May 2012 03:31:24 +0000
(
05:31
+0200)
wrw/session.py
patch
|
blob
|
blame
|
history
diff --git
a/wrw/session.py
b/wrw/session.py
index
1239ecd
..
cf2d792
100644
(file)
--- 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.
R
Lock()
self.ctime = self.atime = self.mtime = int(time.time())
self.expire = expire
self.dctl = set()