mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-02-01 07:49:10 +00:00
tcp protocol: stop on server shutdown
This commit is contained in:
parent
317b4becca
commit
30bafea41a
@ -39,7 +39,7 @@ class RawTCPLayer(Layer):
|
||||
conns = [client, server]
|
||||
|
||||
try:
|
||||
while True:
|
||||
while not self.channel.should_exit.is_set():
|
||||
r = ssl_read_select(conns, 10)
|
||||
for conn in r:
|
||||
dst = server if conn == client else client
|
||||
|
Loading…
Reference in New Issue
Block a user