-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Mitmproxy taking long time to respond on Macbook M1 Sonoma #6851
Comments
All the commands you mentioned work instantaneously for me on the following system:
|
I also ran into a similar issue on my Macbook M1. The Mitmproxy version I am running is 10.1.4. Is it fixed in later versions? |
I would recommend to update to the latest release anyhow. :) |
#6474 is a complete freeze of the application, which seems unrelated. |
@mhils I upgraded to 10.3.0 that is the latest available version online. The proxy worked fine last night but the response times today morning are ~5 minutes or it times out depending on the website. curl -x localhost:8080 -k https://www.google.com ---- 4 minutes I tried to see the error in the logs by using mitmdump -v but didn't see much except connect/disconnect and response statements. Can you please help? |
I don't have capacity at the moment, sorry. This needs a good reproducer in the first place, otherwise it's not really actionable. |
Sure. If there are any mitmproxy logs beyond mitmdump we can use for troubleshooting, please let us know. |
It may be useful to send SIGUSR1 / SIGUSR2 signals to a running mitmproxy instance that exhibits that behavior to see if anything sticks out. |
I just sent SIGUSR1 and SIGUSR2 signals to mitmproxy. Links to the logs are below:- https://gist.github.com/vineet1984/3db14195b78a6a83f15b7d0bb2a2c2b0 From what I can see, there is a line "work_item = work_queue.get(block=True)" in SIGUSR2 logs that could be a possible glitch. Do you see any other glaring issue? |
This all looks good - I'm wondering what kind of output you'd get here during one of these super slow requests? |
I am facing issue where mitmproxy takes a long time to send response due to which it throws 502 bad gateway error for traffic through browser.
While trying through terminal using command
curl -x localhost:8080 -k https://www.google.com
orcurl -x localhost:8080 -k https://lh3.googleusercontent.com
. It is taking a long time to send response in terminal.I started proxy server using command
mitmdump
and installed it using commandpip install mitmproxy
System Information:
Device: Macbook M1
Mitmproxy: 10.3.0
Python: 3.12.0
OpenSSL: OpenSSL 3.2.1 30 Jan 2024
Platform: macOS-14.3-arm64-arm-64bit
Homebrew 4.3.0
The text was updated successfully, but these errors were encountered: