Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

Is there a maximum value for DEFAULT_LIMIT_REQUEST_FIELDSIZE?

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


christopher.newman at alcatel

Oct 13, 2004, 11:07 AM

Post #1 of 5 (366 views)
Permalink
Is there a maximum value for DEFAULT_LIMIT_REQUEST_FIELDSIZE?

Hey everyone,
I want to increase the DEFAULT_LIMIT_REQUEST_FIELDSIZE, a
compile-time constant that defaults to 8190. Is there a maximum value
or, even better, a way to disable it?
There doesn't seem to be any documentation on this, but I did find
an archived apache mailing list message suggesting it was possible. No
mention of an upper limit though. Thanks in advance.

Chris



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


jslive at gmail

Oct 13, 2004, 11:21 AM

Post #2 of 5 (362 views)
Permalink
Re: Is there a maximum value for DEFAULT_LIMIT_REQUEST_FIELDSIZE? [In reply to]

On Wed, 13 Oct 2004 14:07:25 -0400, Christopher R Newman
<christopher.newman [at] alcatel> wrote:
> Hey everyone,
> I want to increase the DEFAULT_LIMIT_REQUEST_FIELDSIZE, a
> compile-time constant that defaults to 8190. Is there a maximum value
> or, even better, a way to disable it?
> There doesn't seem to be any documentation on this, but I did find
> an archived apache mailing list message suggesting it was possible. No
> mention of an upper limit though. Thanks in advance.

I don't believe there is an upper limit, although I'd need to check
the code to be sure. Increasing it may also increase memory
requirements. (Again, a check of the code is in order to verify.)

But note that most browsers are also going to apply some limit to the
size of the request that they will send, so setting this to an
arbitrarily high number will probably not help in any case.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


christopher.newman at alcatel

Oct 14, 2004, 8:51 AM

Post #3 of 5 (375 views)
Permalink
Re: Is there a maximum value for DEFAULT_LIMIT_REQUEST_FIELDSIZE? [In reply to]

Thanks for the quick response Joshua.

I would really appreciate it if someone (so Joshua can have a break ;-)
) could tell me if changing the value from 8192 to something like
65535 would greatly increase the memory requirements. I'm guessing
Josh was talking about how the internal buffer size has to be 2 bytes
greater than the limit but I don't know how much that affects performance.

Regards,
Chris

Joshua Slive wrote:

>On Wed, 13 Oct 2004 14:07:25 -0400, Christopher R Newman
><christopher.newman [at] alcatel> wrote:
>
>
>>Hey everyone,
>> I want to increase the DEFAULT_LIMIT_REQUEST_FIELDSIZE, a
>>compile-time constant that defaults to 8190. Is there a maximum value
>>or, even better, a way to disable it?
>> There doesn't seem to be any documentation on this, but I did find
>>an archived apache mailing list message suggesting it was possible. No
>>mention of an upper limit though. Thanks in advance.
>>
>>
>
>I don't believe there is an upper limit, although I'd need to check
>the code to be sure. Increasing it may also increase memory
>requirements. (Again, a check of the code is in order to verify.)
>
>But note that most browsers are also going to apply some limit to the
>size of the request that they will send, so setting this to an
>arbitrarily high number will probably not help in any case.
>
>Joshua.
>
>
Additional info:
The browser isn't limiting the request, which is why I have a problem
with Apache's limits. I have several large cookies that I write in JS.
Then when I redirect to a CGI, the browser builds a list of cookies
that match the new URL and sends it in the request header as expected.
Apache doesn't like the large header so it returns an error. The
entire site stops working because the browser still passes the same list
of cookies for any requested page... unless I delete some cookies. This
is a real pain!


nick at webthing

Oct 14, 2004, 9:12 AM

Post #4 of 5 (398 views)
Permalink
Re: Is there a maximum value for DEFAULT_LIMIT_REQUEST_FIELDSIZE? [In reply to]

On Thu, 14 Oct 2004, Christopher R Newman wrote:

> Thanks for the quick response Joshua.
>
> I would really appreciate it if someone (so Joshua can have a break ;-)
> ) could tell me if changing the value from 8192 to something like
> 65535 would greatly increase the memory requirements. I'm guessing
> Josh was talking about how the internal buffer size has to be 2 bytes
> greater than the limit but I don't know how much that affects performance.

I don't know the answer.

But I wonder if you've understood the question? The 8190 isn't a limit
on request size, nor on the size of any part of a request body in a POST
or PUT request. Why do you need to grow it?

--
Nick Kew

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


christopher.newman at alcatel

Oct 14, 2004, 10:54 AM

Post #5 of 5 (361 views)
Permalink
Re: Is there a maximum value for DEFAULT_LIMIT_REQUEST_FIELDSIZE? [In reply to]

Sorry. I sort of hid my reasoning after Joshua's response in the last
email. Didn't wanna bother anyone who didn't care with too much info.
The snippet from the last email below tells a little about why I need
to increase the limit on the request header size (not the request body).

<snip>

The browser isn't limiting the request, which is why I have a problem with
Apache's limits. I have several large cookies that I write in JS. Then
when I redirect to a CGI, the browser builds a list of cookies that match
the new URL and sends it in the request header as expected. Apache doesn't
like the large header so it returns an error. The entire site stops working
because the browser still passes the same list of cookies for any requested
page... unless I delete some cookies. This is a real pain!

</snip>

Thanks,
Chris

Nick Kew wrote:

>On Thu, 14 Oct 2004, Christopher R Newman wrote:
>
>
>
>>Thanks for the quick response Joshua.
>>
>>I would really appreciate it if someone (so Joshua can have a break ;-)
>> ) could tell me if changing the value from 8192 to something like
>> 65535 would greatly increase the memory requirements. I'm guessing
>>Josh was talking about how the internal buffer size has to be 2 bytes
>>greater than the limit but I don't know how much that affects performance.
>>
>>
>
>I don't know the answer.
>
>But I wonder if you've understood the question? The 8190 isn't a limit
>on request size, nor on the size of any part of a request body in a POST
>or PUT request. Why do you need to grow it?
>
>
>

--
======================================================================
Chris Newman Alcatel USA Work:(919)850-5586
Software Engineer 2301 Sugar Bush Rd. Fax:(919)850-6160
Test Automation Raleigh, NC 27601 Christopher.Newman [at] alcatel
======================================================================

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.