mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
fix #1162
This commit is contained in:
parent
e2447406cc
commit
01fcaa64c3
@ -483,8 +483,11 @@ class TestConnectionLost(_Http2TestBase, _Http2ServerBase):
|
|||||||
h2_conn.receive_data(raw)
|
h2_conn.receive_data(raw)
|
||||||
except:
|
except:
|
||||||
break
|
break
|
||||||
client.wfile.write(h2_conn.data_to_send())
|
try:
|
||||||
client.wfile.flush()
|
client.wfile.write(h2_conn.data_to_send())
|
||||||
|
client.wfile.flush()
|
||||||
|
except:
|
||||||
|
break
|
||||||
|
|
||||||
if len(self.master.state.flows) == 1:
|
if len(self.master.state.flows) == 1:
|
||||||
assert self.master.state.flows[0].response is None
|
assert self.master.state.flows[0].response is None
|
||||||
|
Loading…
Reference in New Issue
Block a user