Re: Tomcat 8.5.64 maxHttpHeaderSize="6553600"

2023-08-14 Thread Christopher Schultz
Joel, On 8/11/23 11:16, Joel Werginz wrote: Version: 8.5.64 maxHttpHeaderSize=³6553600² Are you able to try with 8.5.91? Your version is more than 2 years old and many fixes have been made to h2 stream handling in that time. -chris 10-Aug-2023 16:36:21.530 FINE [https-openssl-apr-443

Tomcat 8.5.64 maxHttpHeaderSize="6553600"

2023-08-11 Thread Joel Werginz
Version: 8.5.64 maxHttpHeaderSize=³6553600² 10-Aug-2023 16:36:21.530 FINE [https-openssl-apr-443-exec-7] org.apache.coyote.http2.Http2UpgradeHandler.upgradeDispatch Entry, Connection [1], SocketStatus [OPEN_READ] 10-Aug-2023 16:36:21.530 FINE [https-openssl-apr-443-exec-7

Re: maxHTTPHeaderSize, and specific header lengths

2012-10-01 Thread Andrew Todd
On Mon, Oct 1, 2012 at 11:41 AM, Konstantin Kolinko wrote: > 2. If the protocol between HTTPD and Tomcat is AJP, > then the protocol itself has its own limitation, which is ~15 times > lesser than that amount. Thanks for anticipating my next question. Right now we're using mod_proxy with the HTTP

Re: maxHTTPHeaderSize, and specific header lengths

2012-10-01 Thread Konstantin Kolinko
f 8190 bytes. > Additionally, each header line can have a maximum length of 8190 > bytes. With the default maximum of 100 request fields, this means that > httpd will accept a header of up to (101 * 8190) = 827,190 bytes in > size. > > Let's say I'm fronting Tomcat with Ap

Re: maxHTTPHeaderSize, and specific header lengths

2012-10-01 Thread Christopher Schultz
n size. > > Let's say I'm fronting Tomcat with Apache, and I set > maxHttpHeaderSize to 827,190 bytes so that they have the same > limit. > > Is a byte array of that size going to be allocated for each > incoming request, regardless of how short or long it actually is?

Re: maxHTTPHeaderSize, and specific header lengths

2012-10-01 Thread Andrew Todd
* 8190) = 827,190 bytes in size. Let's say I'm fronting Tomcat with Apache, and I set maxHttpHeaderSize to 827,190 bytes so that they have the same limit. Is a byte array of that size going to be allocated for each incoming request, regardless of how short or long it actually is? And, in a wor

Re: maxHTTPHeaderSize, and specific header lengths

2012-09-30 Thread Konstantin Kolinko
2012/9/28 Andrew Todd : > I have a question about maxHttpHeaderSize [0]. In Apache httpd, there > are two different parameters that affect the maximum size of an HTTP > header, limitRequestFieldSize and limitRequestLine. [1] These > configuration values specify about 8 kilobytes per _

maxHTTPHeaderSize, and specific header lengths

2012-09-27 Thread Andrew Todd
I have a question about maxHttpHeaderSize [0]. In Apache httpd, there are two different parameters that affect the maximum size of an HTTP header, limitRequestFieldSize and limitRequestLine. [1] These configuration values specify about 8 kilobytes per _line_ in the incoming request. However, in

Re: AW: AW: Setting the maxHTTPHeaderSize to 'infinity'

2011-04-19 Thread André Warnier
Fischereit, Jana wrote: Hi, I resolved my problem. The problem was that the method request.getInputStream().read() just finish reading the in the server.xml file defined maxHTTPHeaderSize of the inputStream. So I wrote my own method to read the inputsteam and everything works fine. Besides I

AW: AW: Setting the maxHTTPHeaderSize to 'infinity'

2011-04-19 Thread Fischereit, Jana
Hi, I resolved my problem. The problem was that the method request.getInputStream().read() just finish reading the in the server.xml file defined maxHTTPHeaderSize of the inputStream. So I wrote my own method to read the inputsteam and everything works fine. Besides I changed my client-side

Re: AW: Setting the maxHTTPHeaderSize to 'infinity'

2011-04-19 Thread André Warnier
Pid wrote: On 4/19/11 12:20 PM, André Warnier wrote: Hi. I will let someone else comment on your code. I can say that doesn't look like i'd expect it to, per the example code from the Commons HTTP 3.x or HTTP Client 4.x versions. (But remember, this is a help forum for Tomcat, which is th

Re: AW: Setting the maxHTTPHeaderSize to 'infinity'

2011-04-19 Thread Pid
On 4/19/11 12:20 PM, André Warnier wrote: > Hi. > > I will let someone else comment on your code. I can say that doesn't look like i'd expect it to, per the example code from the Commons HTTP 3.x or HTTP Client 4.x versions. > (But remember, this is a help forum for Tomcat, which is the server

Re: AW: Setting the maxHTTPHeaderSize to 'infinity'

2011-04-19 Thread André Warnier
Hi. I will let someone else comment on your code. (But remember, this is a help forum for Tomcat, which is the server side. It is not really a forum to help people write Java HTTP cients). It looks like this is your first try at sending a file to a server. So let me recommend something : I w

AW: Setting the maxHTTPHeaderSize to 'infinity'

2011-04-19 Thread Fischereit, Jana
Thank you for your answer! First I also thought that they have nothing to do with one another. But when I tried to transfer a xml-file (size 9kb) it did not work. Afterwards I increased the maxHTTPHeaderSize to 10 kb. So I concluded that the xml-stream is contained in the body of the request

Re: Setting the maxHTTPHeaderSize to 'infinity'

2011-04-19 Thread André Warnier
Fischereit, Jana wrote: Hi, I would like to send xml-files by using the http-post *request-body*. (emphasis added) But I read that the default maxHTTPHeaderSize is 8kb max HTTP *Header* Size (emphasis added) Nothing to do with one another

Setting the maxHTTPHeaderSize to 'infinity'

2011-04-19 Thread Fischereit, Jana
Hi, I would like to send xml-files by using the http-post request-body. But I read that the default maxHTTPHeaderSize is 8kb (http://tomcat.apache.org/tomcat-6.0-doc/config/http.html#Standard_Implementation). So I cannot transfer files of arbitrary size. Why is there a limit? May problems

Re: maxHttpHeaderSize: InternalNioInputBuffer vs InternalNioOutputBuffer

2011-01-21 Thread Yuesong Wang
Wang wrote: >>>> Hi, >>>> >>>> Is there a reason why InternalNioInputBuffer automatically grows its >>>> buffer, effectively ignoring the maxHttpHeaderSize setting, while >>>> InternalNioOutputBuffer doesn't? I was playing around w

Re: maxHttpHeaderSize: InternalNioInputBuffer vs InternalNioOutputBuffer

2011-01-21 Thread Yuesong Wang
So the bug is InternalNioInputBuffer not honoring maxHttpHeaderSize? Yuesong On Jan 21, 2011, at 9:33 AM, Mark Thomas wrote: > On 21/01/2011 13:55, Yuesong Wang wrote: >> Just to confirm, it is a bug in the InputBuffer, not OutputBuffer? > > InputBuffer, yes. > > OutputB

Re: maxHttpHeaderSize: InternalNioInputBuffer vs InternalNioOutputBuffer

2011-01-21 Thread Mark Thomas
> On Jan 21, 2011, at 6:12 AM, Mark Thomas wrote: > >> On 21/01/2011 00:53, Yuesong Wang wrote: >>> Hi, >>> >>> Is there a reason why InternalNioInputBuffer automatically grows its >>> buffer, effectively ignoring the maxHttpHeaderSize setting, whil

Re: maxHttpHeaderSize: InternalNioInputBuffer vs InternalNioOutputBuffer

2011-01-21 Thread Yuesong Wang
t; effectively ignoring the maxHttpHeaderSize setting, while >> InternalNioOutputBuffer doesn't? I was playing around with the setting, and >> set it to a rather small value. While large requests seem to go through >> without an issue due to the automatic expansion of the bu

Re: maxHttpHeaderSize: InternalNioInputBuffer vs InternalNioOutputBuffer

2011-01-21 Thread Mark Thomas
On 21/01/2011 00:53, Yuesong Wang wrote: > Hi, > > Is there a reason why InternalNioInputBuffer automatically grows its buffer, > effectively ignoring the maxHttpHeaderSize setting, while > InternalNioOutputBuffer doesn't? I was playing around with the setting, and > s

maxHttpHeaderSize: InternalNioInputBuffer vs InternalNioOutputBuffer

2011-01-20 Thread Yuesong Wang
Hi, Is there a reason why InternalNioInputBuffer automatically grows its buffer, effectively ignoring the maxHttpHeaderSize setting, while InternalNioOutputBuffer doesn't? I was playing around with the setting, and set it to a rather small value. While large requests seem to go through wi

Re: URL Exceeding maxHttpHeaderSize

2010-05-28 Thread Christopher Schultz
bug against Tomcat? It really should be returning 413 or 414 as appropriate. Can you write a test that should generate a 414 (with a huge Request-URI) and one with more than maxHttpHeaderSize bytes (obviously, you can set this to something semi-low to trigger it), say, by sending lots of heade

Re: URL Exceeding maxHttpHeaderSize

2010-05-27 Thread glau_pldm
l exists, you'll need to upgrade to get a fix for it, anyway. > > - -chris > > -- View this message in context: http://old.nabble.com/URL-Exceeding-maxHttpHeaderSize-tp28687322p28700228.html Sent from the Tomcat - User mailing list archive at Nabble.com. ---

Re: URL Exceeding maxHttpHeaderSize

2010-05-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To whom it may concern, On 5/27/2010 1:37 PM, glau_pldm wrote: > connectionTimeout="2" >redirectPort="8443" >maxHttpHeaderSize="8192" /> > > I&#

Re: URL Exceeding maxHttpHeaderSize

2010-05-27 Thread glau_pldm
trying to send? An example would really > help. So would your exact version of Tomcat. > > Can you post the rest of your configuration, too? > > - -chris > > -- View this message in context: http://old.nabble.com/URL-Exceeding-maxHttpHeaderSize-tp28687322p28697519.ht

Re: URL Exceeding maxHttpHeaderSize

2010-05-27 Thread Christopher Schultz
. 413 would probably be a better response for "too much header information". What size Request-URI are you trying to send? An example would really help. So would your exact version of Tomcat. > ideally I would like it to return a 414 error. I have my http > connector configured

URL Exceeding maxHttpHeaderSize

2010-05-26 Thread glau_pldm
turn a 414 error. I have my http connector configured with maxHttpHeaderSize="8192" -- View this message in context: http://old.nabble.com/URL-Exceeding-maxHttpHeaderSize-tp28687322p28687322.html Sent from the Tomcat - User mailing list a

RE: maxHttpHeaderSize question

2009-03-10 Thread Caldarale, Charles R
> From: Josef Galea [mailto:jos...@ccbilleu.com] > Subject: maxHttpHeaderSize question > > Does the connector attribute maxHttpHeaderSize refer to the > total size of all the headers, or of each individual header? The total. BTW, the default is 8192 in Tomcat 6.0.18, not 4096;

maxHttpHeaderSize question

2009-03-10 Thread Josef Galea
Hi all, Does the connector attribute maxHttpHeaderSize refer to the total size of all the headers, or of each individual header? Thanks for your time. Regards, Josef smime.p7s Description: S/MIME cryptographic signature

Re: MaxHTTPHeaderSize

2007-08-08 Thread Rob Kirkbride
nly 1 app server at a time and seems to > > stop and start in bursts of sometimes over an hour, but then nothing for > > several hours after that. > > This is with Tomcat 5.5.20 and mod_jk 1.2.23. > > > > Is it possible that it is someone trying to provoke a DOS or sh

Re: MaxHTTPHeaderSize

2007-08-08 Thread Rainer Jung
ts of sometimes over an hour, but then nothing for several hours after that. This is with Tomcat 5.5.20 and mod_jk 1.2.23. Is it possible that it is someone trying to provoke a DOS or should I really investigate increasing the maxhttpheadersize in server.xml and max_http_size in Mod_jk? Than

MaxHTTPHeaderSize

2007-08-08 Thread Rob Kirkbride
.2.23. Is it possible that it is someone trying to provoke a DOS or should I really investigate increasing the maxhttpheadersize in server.xml and max_http_size in Mod_jk? Thanks for any help, Rob 2007-08-08 08:36:47,579 ERROR [ ] [org.apache.jk.common.MsgAjp] Buffer overflow : buffer.len=819

Low value for maxHttpHeaderSize causes "server failed to respond" error

2006-11-21 Thread Praveen Balaji
Hi all, I am using Tomcat 5.5.12. When I set the maxHttpHeaderSize to a low value and send a large header, my HTTPClient throws "org.apache.commons.httpclient.NoHttpResponseException: The server localhost failed to respond" exception. Is this the expected behavior? Will Tomcat abort

Low value for maxHttpHeaderSize causes "server failed to respond" error

2006-11-21 Thread Praveen Balaji
Hi all, I am using Tomcat 5.5.12. When I set the maxHttpHeaderSize to a low value and send a large header, my HTTPClient throws "org.apache.commons.httpclient.NoHttpResponseException: The server localhost failed to respond" exception. Is this the expected behavior? Will Tomcat abort