Re: Limiting HTTP request size

2008-12-20 Thread Graham Dumpleton
On Dec 20, 9:19 pm, Andreas Gustafsson wrote: > On Dec 19, 11:45 pm, Graham Dumpleton > wrote: > > > It hasn't got anything to do with LimitRequestBody. That this but > > exists in current versions of mod_python and can crop up at random > > times is a good reason why you don't want to be usin

Re: Limiting HTTP request size

2008-12-20 Thread Andreas Gustafsson
On Dec 19, 11:45 pm, Graham Dumpleton wrote: > It hasn't got anything to do with LimitRequestBody. That this but > exists in current versions of mod_python and can crop up at random > times is a good reason why you don't want to be using mod_python. I've never seen it happen at random, but it ha

Re: Limiting HTTP request size

2008-12-19 Thread Graham Dumpleton
On Dec 20, 12:48 am, Andreas Gustafsson wrote: > What's the recommended way to protect a Django application against > denial of service via huge file uploads or  huge POST requests in > general?  If I set the LimitRequestBody option in the Apache > configuration file, mod_python throws an omino

Re: Limiting HTTP request size

2008-12-19 Thread Abdel Bolanos Martinez
my friend i can suggest write a custom FileUploadHandler and improve the method receive_data_chunk(self, raw_data, start) and check the data that comes into your server, search in the documentation about write a custom FileUploadHandler, if need more help write now!!! On Fri, 2008-12-19 at 05:

Limiting HTTP request size

2008-12-19 Thread Andreas Gustafsson
What's the recommended way to protect a Django application against denial of service via huge file uploads or huge POST requests in general? If I set the LimitRequestBody option in the Apache configuration file, mod_python throws an ominous-looking exception when the limit is exceeded: System