tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: Http11NioProtocol error 505 (or 400)
Date Mon, 27 Dec 2010 21:23:06 GMT
Hash: SHA1


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?

> 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?

> 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.

- -chris
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla -


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message