Jim Gallacher
jg.lists at sympatico.ca
Tue Oct 18 08:12:45 EDT 2005
Wim Heirman wrote: > Hello, > > When uploading a large file without newlines (a testfile with 100 MB of > \0-bytes), I found that Apache starts to consume a huge amount of > memory. The problem is the two req.readline()-calls in > util.py:read_to_boundary(); since the file doesn't have a newline in it > the first one will return a string of size 100 MB. Replacing both calls > with req.readline(4096) solves this, the rest of the code in > read_to_boundary() seems to work fine when reading lines in multiple calls. > I assume you are using mod_python version < 3.2 as I believe this was fixed for 3.2. See http://issues.apache.org/jira/browse/MODPYTHON-40 Regards, Jim
|