tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olaf Tomczak <olaf.tomc...@gmail.com>
Subject Re: Http11NioProtocol error 505 (or 400)
Date Mon, 27 Dec 2010 22:08:55 GMT
2010/12/27 Christopher Schultz <chris@christopherschultz.net>

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Olaf,
>
> On 12/27/2010 12:59 PM, Olaf Tomczak wrote:
> > I also isolated a
> > test request that always fails on my test server instace and used it as a
> > JMeter test configuration.
>
> Excellent. Can you post that rest request to the list?
>

I'll make sure to do that tommorow.


>
> > InternalNioInputBuffer.parseRequestLine - successfully parses the first
> > request line
> > InternalNioInputBuffer.parseHeader - parses some headers but then fails
> to
> > read more data and returns with HeaderParseStatus.NEED_MORE_DATA status
> > InternalNioInputBuffer.parseRequestLine - is called again and then tries
> to
> > parse the remaining headers and fails with 505 since it takes a part of
> > 'User-Agent' header value as a protocol name.
>
> I notice that you didn't have a maxHttpHeaderSize attribute on your
> connector. Is it possible that you have a header section that is too large?
>

My request was under 1500 bytes so this is probably not the case, I'll check
that anyway.


>
> > I also noticed that when a use a local instance of Tomcat (on the same
> host
> > as my jmeter) with the same configuration the requests work (I suppose
> it's
> > because the connection is faster and more data is available in the buffer
> > without delay).
>
> Probably not. It is possible that "localhost" is a shorter hostname than
> your remote clients and that the request headers end up being short
> enough just due to that.
>

Well I tried to add additional characters to the query string to compensate
that.. You may be right however.. didn't have much time to test it. Still I
don't understand why this HeaderParseStatus.NEED_MORE_DATA status is
generally never handled..


>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAk0ZA7oACgkQ9CaO5/Lv0PAyNQCcD/aIYp+lzTqAf2NvyUEvKp9+
> bKoAoMGDToR4vUZowxFRjreu9k8ie10D
> =EY8I
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message