#4519 enhancement new
Delay parsing of request body until Request.args is accessed
|Reported by:||jamesh||Owned by:||rlotun|
At the moment, if the request body for a post is form data (either url encoded or multipart), it is read into memory as the Request.args dictionary. This means that large requests can chew up large amounts of memory.
Attached is a patch based on one from ticket #288 that delays parsing of the request body until Request.args is accessed. This should maintain compatibility with the existing API while allowing applications that are concerned about memory usage to parse the request body themselves.
Change History (8)
Changed 4 years ago by jamesh
comment:2 Changed 4 years ago by exarkun
- Keywords review removed
- Owner changed from jknight to jamesh