mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-01-30 23:09:44 +00:00
fix locking issues
This commit is contained in:
parent
af6c257131
commit
b007ff3f9b
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user