Author: markt
Date: Sun Feb 8 16:50:06 2015
New Revision: 1658207
URL: http://svn.apache.org/r1658207
Log:
Follow-up to r1657907
Always reset pos to zero before next request.
Modified:
tomcat/trunk/java/org/apache/coyote/http11/Http11InputBuffer.java
Modified: tomcat/trunk/java/org/apache/coyote/http11/Http11InputBuffer.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http11/Http11InputBuffer.java?rev=1658207&r1=1658206&r2=1658207&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/http11/Http11InputBuffer.java (original)
+++ tomcat/trunk/java/org/apache/coyote/http11/Http11InputBuffer.java Sun Feb
8 16:50:06 2015
@@ -350,9 +350,10 @@ public class Http11InputBuffer implement
// Copy leftover bytes to the beginning of the buffer
if (lastValid - pos > 0 && pos > 0) {
System.arraycopy(buf, pos, buf, 0, lastValid - pos);
- lastValid = lastValid - pos;
- pos = 0;
}
+ // Always reset pos to zero
+ lastValid = lastValid - pos;
+ pos = 0;
// Recycle filters
for (int i = 0; i <= lastActiveFilter; i++) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]