Ticket #343 (new enhancement)

Opened 3 years ago

patch to handle large response with wsgiproxy.exactproxy

Reported by: gawel Owned by: ianb
Priority: normal Milestone:
Component: paste Version: svn-trunk
Severity: normal Keywords: wsgiproxy
Cc:

Description

As the comment said: This shouldn't really read in all the content at once

exactproxy.proxy_exact_request raise a MemoryError? when the response is too big (> 4Mb)

Here is a patch to iter over a large response body

I've also added a new test for this but since the original test don't work for me (can't get the correct output both with 2.4 and 2.5) i attach an other patch for this

Attachments

large_response.patch Download (1.6 KB) - added by gawel 3 years ago.
large_response_test.patch Download (2.3 KB) - added by gawel 3 years ago.

Change History

Changed 3 years ago by gawel

Changed 3 years ago by gawel

Note: See TracTickets for help on using tickets.