aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/proxy
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2018-03-31 19:27:26 +1300
committerAldo Cortesi <aldo@corte.si>2018-04-01 09:46:32 +1200
commit54170ee6572e8ba38b94a4e51f3c8e832e5f9ac7 (patch)
treed3599a5d913e8bb37c82718ffe3ccaae46130d1e /mitmproxy/proxy
parentd9752c90f97f6ee7f2283ddafe3cde2553230789 (diff)
downloadmitmproxy-54170ee6572e8ba38b94a4e51f3c8e832e5f9ac7.tar.gz
mitmproxy-54170ee6572e8ba38b94a4e51f3c8e832e5f9ac7.tar.bz2
mitmproxy-54170ee6572e8ba38b94a4e51f3c8e832e5f9ac7.zip
asyncio: start a test loop for unit tests
Also move signal handling out of master. These only work in the main thread, and properly belong in main.py.
Diffstat (limited to 'mitmproxy/proxy')
-rw-r--r--mitmproxy/proxy/protocol/http_replay.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mitmproxy/proxy/protocol/http_replay.py b/mitmproxy/proxy/protocol/http_replay.py
index bd3ecb98..8682f50e 100644
--- a/mitmproxy/proxy/protocol/http_replay.py
+++ b/mitmproxy/proxy/protocol/http_replay.py
@@ -38,7 +38,7 @@ class RequestReplayThread(basethread.BaseThread):
self.f = f
f.live = True
if event_queue:
- self.channel = controller.Channel(loop, event_queue, should_exit)
+ self.channel = controller.Channel(loop, event_queue)
else:
self.channel = None
super().__init__(