durusmail: quixote-users: upper size limit on POST data?
widget repository for Quixote
2004-05-16
form2 and file upload (FileWidget)
2004-05-17
2004-05-17
upper size limit on POST data?
2004-05-18
2004-05-18
2004-05-18
2004-05-18
upper size limit on POST data?
Evan LaForge
2004-05-18
> > Is there a way to limit the maximum size of data submitted in a POST in
> > Quixote?  Maybe the right answer is to just use Apache's LimitRequestBody
> > configuration?
>
> I assume you're concerned about some kind of DoS, or the like... My answer
> reflects that assumption.  Maybe someone else can shed some more light on thi
> s,
> but...
>
> ...the short answer is no.

You can set cgi.maxlen and then catch the ValueError from
publisher.parse_request, but if apache (or whatever web server) does indeed
read the whole POST instead of handing the socket directly to the CGI script
then this will just save some extra parsing time, not save your RAM.

LimitRequestBody looks like what you want.


reply