From 874769584910da21b35b046c8f3099ef8ccfc1bf Mon Sep 17 00:00:00 2001 From: Antoine Millet Date: Mon, 31 Jan 2011 16:31:52 +0100 Subject: [PATCH] Changed lock of BytesBuffer from Lock to RLock. --- sjrpc/utils/datastructures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sjrpc/utils/datastructures.py b/sjrpc/utils/datastructures.py index d2fbcd2..0715d17 100644 --- a/sjrpc/utils/datastructures.py +++ b/sjrpc/utils/datastructures.py @@ -19,7 +19,7 @@ class BytesBuffer(object): self._buf = '' else: self._buf = data - self._lock = threading.Lock() + self._lock = threading.RLock() def push(self, data): ''' -- GitLab