Skip to content

Commit

Permalink
mitmweb: Allow up to 4GB dump to be uploaded (#6373)
Browse files Browse the repository at this point in the history
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Maximilian Hils <github@maximilianhils.com>
  • Loading branch information
3 people committed Sep 19, 2023
1 parent dd1ee72 commit 3745017
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -4,6 +4,8 @@

* Add support for reading HAR files using the existing flow loading APIs, e.g. `mitmproxy -r example.har`.
([#6335](https://github.com/mitmproxy/mitmproxy/pull/6335), @stanleygvi)
* Increase maximum dump file size accepted by mitmweb
([#6373](https://github.com/mitmproxy/mitmproxy/pull/6373), @t-wy)


## 04 August 2023: mitmproxy 10.0.0
Expand Down
4 changes: 3 additions & 1 deletion mitmproxy/tools/web/master.py
Expand Up @@ -97,7 +97,9 @@ async def running(self):
tornado.ioloop.IOLoop.current()

# Add our web app.
http_server = tornado.httpserver.HTTPServer(self.app)
http_server = tornado.httpserver.HTTPServer(
self.app, max_buffer_size=2**32
) # 4GB
try:
http_server.listen(self.options.web_port, self.options.web_host)
except OSError as e:
Expand Down

0 comments on commit 3745017

Please sign in to comment.