I would appreciate any hints on how to implement connection throttling. I have to cap speed available to some particular connections. There is no need to cap any other connections within same cli-srv session, so it would be best if I could define caps on per-connection basis. …
Generally speaking, that could be tricky. Your best bet is looking at mitmproxy.net.tcp’s Reader.