tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: Bug 37794 - Parameters, chunked requests and maxPostSize
Date Tue, 16 Jun 2009 10:58:00 GMT
Josh Gooding wrote:
> Gentlemen,
> 
> Let me ask this.  What is the maxPostSize in Tomcat?
Did you look at the docs?

http://tomcat.apache.org/tomcat-6.0-doc/config/http.html

>    I'm ok with "a" but
> I'm trying to think ahead in how to make an extremely large POST acceptable
> maybe for 7.  I have not hit the maxPostSize at all, and I have uploaded
> some large (+20MB) files with tomcat.  Let me see if I can successfully
> reproduce the bug.  Would there be  way to remove the maxPostSize cap and
> accept what ever the user puts in there size wise?

Again, look at the docs.

For the record, multi-gigabyte files can happily be up uploaded without
an issue.

Mark

> 
> Regards,
> 
> - Josh
> 
> On Mon, Jun 15, 2009 at 8:07 PM, Tim Funk <funkman@apache.org> wrote:
> 
>> Yes chunked requests on POST are OK. I like option a too.
>>
>> -Tim
>>
>> Mark Thomas wrote:
>>
>>> For chunked request bodies, the content length is unknown. We can track
>>> how many bytes we have read. If we read more the maxPostSize, what do we
>>> do?
>>> a) Throw an exception that leads to a 500 response?
>>> b) Drop what we have read already and ignore the rest?
>>> c) Process what we have already and ignore the rest (there will almost
>>> certainly be some invalid data at the end of the buffer in this case -
>>> this will be skipped)?
>>> d) Something else?
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: dev-help@tomcat.apache.org
>>
>>
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message