aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2015-01-09 17:17:12 +0100
committerMaximilian Hils <git@maximilianhils.com>2015-01-09 17:17:12 +0100
commite18294437c4629f26dc65e16a9252ef61a109284 (patch)
tree483d1c47d06c390aee680a65f675e8ba113749d5 /libmproxy
parent40c28b79d1c1aa56584cb11ac599cb80d9e03e94 (diff)
downloadmitmproxy-e18294437c4629f26dc65e16a9252ef61a109284.tar.gz
mitmproxy-e18294437c4629f26dc65e16a9252ef61a109284.tar.bz2
mitmproxy-e18294437c4629f26dc65e16a9252ef61a109284.zip
document choice of timeout value, refs #443
Diffstat (limited to 'libmproxy')
-rw-r--r--libmproxy/controller.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/libmproxy/controller.py b/libmproxy/controller.py
index 980ff8c0..9ca89184 100644
--- a/libmproxy/controller.py
+++ b/libmproxy/controller.py
@@ -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()