mitmproxy/mitmproxy — pull request #139 by smurfix (2013-06-26 13:11:53+00:00)
Title: Close connection when flush fails

proxy.ServerConnection.terminate should (try to) close its connection when the flush fails.