mitmproxy/mitmproxy — pull request #286 by m0sth8 (2014-06-13 07:23:27+00:00)
Title: Remove global should_exit and fix tests

I have a plan to integrate libmproxy in w3af https://github.com/andresriancho/w3af/issues/1269.
Current Master implementation depends on global variable `should_exit` for shutdown proxy server, it's bad for us, because we use many threads and different proxies.
I've changed implementation by using threading.Event.