Skip to content
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

mitmweb: Allow up to 4GB dump to be uploaded #6373

Merged
merged 4 commits into from Sep 19, 2023
Merged

Conversation

t-wy
Copy link
Contributor

@t-wy t-wy commented Sep 19, 2023

Description

A temporary fix to allow up to 4GB dump to be uploaded by supplying max_buffer_size of the HTTPServer constructor to be 2**32 (4GB).

(Perhaps it is better to be a configurable item, or change the post mechanism to stream instead if there ever is any security concern implied due to usage or hardware limitations)

By default, if no argument is supplied, the maximum buffer size is 100MB, which causes saved dump file to be unreadable through the web interface.

Reference Documentation: Link

Possibly:
Resolves #4651, resolves #5609

Checklist

  • I have updated tests where applicable.
  • I have added an entry to the CHANGELOG.

@t-wy t-wy changed the title mitmweb: Allow 4GB dump to be uploaded mitmweb: Allow up to 4GB dump to be uploaded Sep 19, 2023
Copy link
Member

@mhils mhils left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks for digging into this! 🍰

@mhils mhils enabled auto-merge (squash) September 19, 2023 10:03
@mhils mhils merged commit 3745017 into mitmproxy:main Sep 19, 2023
19 checks passed
@huuck
Copy link

huuck commented Nov 9, 2023

Just tried the latest version, still happening with a 400 Mb file

@huuck
Copy link

huuck commented Nov 9, 2023

My bad, it just takes a really long time to upload it. Sorry for the confusion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mitmweb Not loading my saved flow Outfile -w cannot be loaded
3 participants