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.should_exit.clear()
|
||||||
self.server.start_slave(Slave, Channel(self.masterq, self.should_exit))
|
self.server.start_slave(Slave, Channel(self.masterq, self.should_exit))
|
||||||
while not self.should_exit.is_set():
|
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.tick(self.masterq, 0.1)
|
||||||
self.shutdown()
|
self.shutdown()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue