You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2013/05/12 23:48:47 UTC

[Bug 54947] Http11NioProtocol generates HTTP 505 responses on valid requests if request is split across multiple packets

https://issues.apache.org/bugzilla/show_bug.cgi?id=54947

--- Comment #1 from Konstantin Preißer <pr...@web.de> ---
Created attachment 30272
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=30272&action=edit
Patch for trunk

Hi,

I can reproduce the issue with current trunk and Tomcat 7.0.40.

Attached is a patch against trunk that fixes the issue for me by resolving a
logic error in InternalNioInputBuffer ("end = 0" was set twice: when starting
to read the HTTP version up to \r, and after the \n has been received; which
meant "end" was set to the position of "\n" instead of "\r", causing the
version string to be "HTTP/1.1\r" instead of "HTTP/1.1").

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org