> > 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.