namecoin / nmcontrol

Namecoin Control. This repo is deprecated in favor of https://github.com/namecoin/ncdns
136 stars 39 forks source link

Integrate mitmproxy #53

Open JeremyRand opened 9 years ago

JeremyRand commented 9 years ago

Integrate a proxy server using mitmproxy. Hopefully this will make Convergence unnecessary.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/7483411-integrate-mitmproxy?utm_campaign=plugin&utm_content=tracker%2F435873&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F435873&utm_medium=issues&utm_source=github).
JeremyRand commented 9 years ago

In #34 @indolering said the following: "Shouldn't our proxy software use the RPC interface? I doubt that, for example, Tor would use mitmproxy."

@indolering In my testing, doing a single RPC call has an overhead on the order of 2ms (note that loading a website will require multiple RPC calls -- 5 RPC calls is not out of the question). I believe (though I haven't tested) that integrating mitmproxy as an NMControl service will be much faster than that. It doesn't matter for Tor's purposes -- if they don't want to use mitmproxy, then they can just not enable that service.