mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-22 15:37:45 +00:00
document choice of timeout value, refs #443
This commit is contained in:
parent
40c28b79d1
commit
e18294437c
@ -108,6 +108,10 @@ class Master(object):
|
||||
self.should_exit.clear()
|
||||
self.server.start_slave(Slave, Channel(self.masterq, self.should_exit))
|
||||
while not self.should_exit.is_set():
|
||||
|
||||
# Don't choose a very small timeout in Python 2:
|
||||
# https://github.com/mitmproxy/mitmproxy/issues/443
|
||||
# TODO: Lower the timeout value if we move to Python 3.
|
||||
self.tick(self.masterq, 0.1)
|
||||
self.shutdown()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user