Submitted by matn@menem.com on Sat, 05/09/2009 - 16:11

I found the constant
const boost::uint64_t HTTPParser::DEFAULT_CONTENT_MAX = 1024 * 1024; // 1 MB
But is there any way to override it on a per instance basis while working with HTTPServer?
Tags:

Nice catch! We have a method to change this in HTTPParser, but it cannot be accessed when using HTTPServer. I created a ticket for this:
http://trac.atomiclabs.com/ticket/589
Available on there now is a patch file that works both for the 2.0.x branch and trunk. It adds a HTTPServer::setMaxContentLength() method that lets you override the default value of 1MB.
I checked the patch into trunk, so it will be incorporated into our 2.1.x release next month.
- Login or register to post comments
Submitted by Mike Dickey on Tue, 05/26/2009 - 11:37.