aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/protocol/http2.py
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2016-02-01 23:27:37 +0100
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2016-02-04 09:52:28 +0100
commitb007ff3f9b00165bd87c18292d8b23d4acc83ab9 (patch)
tree93373830b5080b33f74aaa464c375b11d4c6f969 /libmproxy/protocol/http2.py
parentaf6c2571312132d4309ffc43e86053c40132c849 (diff)
downloadmitmproxy-b007ff3f9b00165bd87c18292d8b23d4acc83ab9.tar.gz
mitmproxy-b007ff3f9b00165bd87c18292d8b23d4acc83ab9.tar.bz2
mitmproxy-b007ff3f9b00165bd87c18292d8b23d4acc83ab9.zip
fix locking issues
Diffstat (limited to 'libmproxy/protocol/http2.py')
-rw-r--r--libmproxy/protocol/http2.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/libmproxy/protocol/http2.py b/libmproxy/protocol/http2.py
index 4b582f51..4b3ef0ed 100644
--- a/libmproxy/protocol/http2.py
+++ b/libmproxy/protocol/http2.py
@@ -72,6 +72,7 @@ class SafeH2Connection(H2Connection):
while position < len(chunk):
self.lock.acquire()
if is_zombie(self, stream_id):
+ self.lock.release()
return
max_outbound_frame_size = self.max_outbound_frame_size
frame_chunk = chunk[position:position + max_outbound_frame_size]