Glenn Linderman <v+pyt...@g.nevcal.com> added the comment:

R. David said:
However, I'm not clear on how that helps.  Doesn't FieldStorage also load 
everything into memory?

I say:
FieldStorage in 2.x (for x <= 6, at least) copies incoming file data to a file, 
using limited size read/write operations.  Non-file data is buffered in memory.

In 3.x, FieldStorage doesn't work.  The code that is there, though, for 
multipart/ data, would call email to do all the parsing, which would happen to 
include file data, which always comes in as part of a multipart/ data stream.  
This would prevent cgi from being used to accept large files in a limited 
environment.  Sadly, there is code is place that would the copy the memory 
buffers to files, and act like they were buffered... but process limits do not 
care that the memory usage is only temporary...

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10879>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to