You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
running hook is triggered too early, before "address already in use" exit #5376
Called when the proxy is completely up and running
In reality running is triggered despite the port not being available.
For me this causes a flickering in the UI because I use running to tell the parent process that the proxy is ready. But shortly after that the process exits and I'm back in the stopped state. So the UI will be in the "Proxy is up" state for like 200ms which looks ugli and buggy.
In v7 we didn't properly exit at all when the port was available and it v6 the running hook is not called.
Steps to reproduce the behavior:
ncat -l 8080 make the port unavaiable
mitmdump --quiet --scripts addon.py
defrunning():
print("running")
You get the following output
running
[Errno 98] error while attempting to bind on address ('0.0.0.0', 8080): address already in use
System Information
I downloaded the 8.1.0 because I currently can't run mitmproxy locally (still on Ubuntu 20.04 with Python 3.8) and can't remember how to download the main snapshots.
Activity