mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
update hyper-h2 exception handling
This commit is contained in:
parent
24641d8561
commit
db38e5a1cc
@ -158,7 +158,7 @@ class SafeH2Connection(H2Connection):
|
||||
with self.lock:
|
||||
try:
|
||||
self.reset_stream(stream_id, error_code)
|
||||
except h2.exceptions.ProtocolError:
|
||||
except h2.exceptions.StreamClosedError:
|
||||
# stream is already closed - good
|
||||
pass
|
||||
self.conn.send(self.data_to_send())
|
||||
|
Loading…
Reference in New Issue
Block a user