matn@menem.com's picture

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?

itiaoshui's picture
Find the right ed hardy

Find the right ed hardy clothing for yourself, just visit Been2u.com. There are varieties of ed hardy for your reference. Some of them are real great hot sell in our store such as ed hardy jeans. You can enjoy free and fast shipping if you buy ed hardy from our store! Good luck and welcome you!
ed hardy jeans
ed hardy tanks
ed hardy caps
ed hardy t-Shirts
ed hardy swimwear
ed hardy sunglasses
ed hardy underwear
ed hardy hoodies &amp

Submitted by itiaoshui on Wed, 09/01/2010 - 22:23.
Mike Dickey's picture
Nice catch! We have a method

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.

Submitted by Mike Dickey on Tue, 05/26/2009 - 11:37.