I have this, very simple input filter
def inputfilter(filter): if filter.req.method != 'POST': filter.pass_on() return filter.req.log_error('first read') s = filter.read() while s: filter.req.log_error('writing (%s)' % len(s)) filter.write(s) #filter.flush() s = filter.read() if s is None: filter.req.log_error('closing') filter.close() I would like to use an input filter for uploading large files. I would expect that after each writing/reading, filter releases memory.But instead memory increases during reading/writing and no memory is released after each reading/writing. Is it a common feature that the filter during reading/writing does NOT release memory and memory increases until the whole file is uploaded? Or is my presumption correct that the memory should be released during each reading/writing in the filter? Thank you for help and reply. Lad.