[Python-bugs-list] memory bloat in binary file upload (PR#381)

naris@ensim.com naris@ensim.com
Mon, 3 Jul 2000 21:29:26 -0400 (EDT)


Full_Name: Naris Siamwalla
Version: 1.5.2
OS: RedHat 6.1
Submission from: (NULL) (64.13.83.163)


read_lines_to_outerboundary chews up memory.
there's a while (1) loop that does a readline(), which
is probably not good, as you could have a binary file that
doesn't have an endline til the end, and thus readline would
read the entire file into memory.  i did the following:
dd'd a 100MB /dev/zero file and used zope to upload it.
it chewed up a large amount of memory.

there seems to be bug reports about text files and windows
systems (and needing to use python -u), but this problem
is unrelated.  i am using a unix browser -> unix web server.