mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-02-01 07:49:10 +00:00
Handle client close more gracefully.
This commit is contained in:
parent
3d8610b6bc
commit
8352c0278f
@ -14,7 +14,7 @@ class PathodHandler(tcp.BaseHandler):
|
||||
self.server.ssloptions["keyfile"],
|
||||
)
|
||||
|
||||
while 1:
|
||||
while not self.finished:
|
||||
line = self.rfile.readline()
|
||||
if line == "\r\n" or line == "\n": # Possible leftover from previous message
|
||||
line = self.rfile.readline()
|
||||
|
Loading…
Reference in New Issue
Block a user