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