mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-27 02:24:18 +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:
|
with self.lock:
|
||||||
try:
|
try:
|
||||||
self.reset_stream(stream_id, error_code)
|
self.reset_stream(stream_id, error_code)
|
||||||
except h2.exceptions.ProtocolError:
|
except h2.exceptions.StreamClosedError:
|
||||||
# stream is already closed - good
|
# stream is already closed - good
|
||||||
pass
|
pass
|
||||||
self.conn.send(self.data_to_send())
|
self.conn.send(self.data_to_send())
|
||||||
|
Loading…
Reference in New Issue
Block a user