On 05/01/2006, at 3:15 PM, Gregory (Grisha) Trubetskoy wrote:


On Wed, 4 Jan 2006, Graham Dumpleton (JIRA) wrote:

This makes one wander if there should be a configurable option for mod_python.psp to tell it not to flush output as well so that CONTENT_LENGTH could be used in that case as well. ???

I kinda mentioned this in the previous e-mail - PSP always does not flush output, in fact that 0/1 argument was added to req.write() just for PSP. So for pure PSP pages, content-length _should_ work (haven't tested it).

Unfortunately, the CONTENT_LENGTH output filter does not in fact work
with PSP.

The reason is that although each individual req.write() doesn't flush,
the PSP code itself does an explicit flush after running the generated
page code.

                exec code in global_scope
                req.flush()

For it to work, the req.flush() call would have to be removed.

Graham

Reply via email to