Skip to content

Commit

Permalink
increase default for form-memory-limit to 8MB to avoid Plone prob…
Browse files Browse the repository at this point in the history
…lems
  • Loading branch information
d-maurer committed Oct 31, 2023
1 parent c5aa67c commit 4cf6341
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ZPublisher/HTTPRequest.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@

# DOS attack protection -- limiting the amount of memory for forms
# probably should become configurable
FORM_MEMORY_LIMIT = 2 ** 20 # memory limit for forms
FORM_MEMORY_LIMIT = 2 ** 23 # memory limit for forms
FORM_DISK_LIMIT = 2 ** 30 # disk limit for forms
FORM_MEMFILE_LIMIT = 2 ** 12 # limit for `BytesIO` -> temporary file switch

Expand Down
2 changes: 1 addition & 1 deletion src/Zope2/Startup/wsgischema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
provides access via a file API and is not limited.
</description>

<key name="form-memory-limit" datatype="byte-size" default="1MB">
<key name="form-memory-limit" datatype="byte-size" default="8MB">
<description>
Limits the total amount of memory for all parameter values held in
memory.
Expand Down

0 comments on commit 4cf6341

Please sign in to comment.