-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Description
Problem Description
Curl throws an error when running mitmdump in server replay mode and downloading a large file. The error is: curl: (56) Recv failure: Connection reset by peer This also happens with wget and downloading smaller files from the same server works fine.
Steps to reproduce the behavior:
-
Run mitmdump saving intercepted flows to file:
mitmdump --save-stream-file=Isabelle2024_linux.tar.gz.mitm -
Download large file:
curl --proxy http://127.0.0.1:8080 --location https://isabelle.in.tum.de/dist/Isabelle2024_linux.tar.gz > Isabelle2024_linux.tar.gz -
Restart mitmdump it in server replay mode:
mitmdump --server-replay Isabelle2024_linux.tar.gz.mitm -
Try download again:
curl --proxy http://127.0.0.1:8080 --location https://isabelle.in.tum.de/dist/Isabelle2024_linux.tar.gz > Isabelle2024_linux.tar.gz
System Information
Mitmproxy: 12.0.0.dev (+2, commit 35bcadd)
Python: 3.12.8
OpenSSL: OpenSSL 3.4.1 11 Feb 2025
Platform: Linux-6.13.2-x86_64-with-glibc2.40
Checklist
- This bug affects the latest mitmproxy release.