[mod_python] problem with input filter and POST data (fileupload)

Graham Dumpleton graham.dumpleton at gmail.com
Sun Feb 15 23:50:05 EST 2009


2009/2/16 Joerg <jerch at rockborn.de>:
> just one thing,
>
> from apache include/httpd.h:
> ...
>  #define   HUGE_STRING_LEN   8192
> ...
>
> wot a coincidence ;)

Yeah, there are lots of magic numbers in Apache. For 256 and 8000
popping up see interesting problem in:

  http://groups.google.com/group/modwsgi/browse_frm/thread/e7111816e70d236a

Something would work if data < 256 or > ~8000, but not if between the
two bounds. Wasn't exactly 8000 because of some allowance for header
information (I think).

Turned out to be some silly optimisation Apache was attempting to do.
The optimisation only got applied if keep alive was requested by
client and enabled in server.

Graham


More information about the Mod_python mailing list