New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Performance bogs down with normal web use. #18
Comments
Hey Mitch, Out of curiosity, which version of Performance upgrade is what I'm hoping to tackle next after adding a test suite to the project. The main bottleneck is in Lines 211 to 222 in e564815
Due to limitations on the Python Standard Library's Lines 228 to 240 in e564815
This is a disaster that hasn't been fixed since a patch was first created for cpython back in 2013. See this thread if you want to feel depressed. I attempted to mitigate this issue by using I'll keep this issue open and will update here if I find any solution. |
Regarding the version of Yeah, I haven't looked too far into the Cheers! |
Sounds good! I'll drop any performance updates here as well. |
Added #19 to mitigate bottle neck issues. Browsed and used WhatsApp for about an hour with #19 enabled and had zero issues (YouTube, Reddit, YCombinator, Github, StackOverflow, etc. among other things). Things seem to work as expected. Give from mitm import MITM, CertificateAuthority, middleware, protocol, crypto
from pathlib import Path
# Updates the maximum size of the LRU cache.
crypto.LRU_MAX_SIZE = 2048 # Defaults to 1024.
# Loads the CA certificate.
path = Path("/Users/felipefaria/Desktop")
certificate_authority = CertificateAuthority.init(path=path)
# Starts the MITM server.
mitm = MITM(
host="127.0.0.1",
port=8888,
protocols=[protocol.HTTP],
middlewares=[],
certificate_authority=certificate_authority,
)
mitm.run() You don't need to change Closing this for the meantime. |
G'day,
I tried using the proxy as a normal HTTPs proxy for normal web-browsing. It seems like it struggles with a backlog of requests and does things sequentially.
I'm not sure if it's built for this kind of purpose, but it's what I intend on using it for so any help in getting it to run slightly smoother would be of great help!
Cheers,
Mitch
The text was updated successfully, but these errors were encountered: