This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/9.0.x by this push:
     new 874b3fc  Recycle chr and prevChr
874b3fc is described below

commit 874b3fcd86ca868181ffb32af6e3959205cf3b77
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Tue Mar 10 17:32:08 2020 +0000

    Recycle chr and prevChr
---
 java/org/apache/coyote/http11/Http11InputBuffer.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/java/org/apache/coyote/http11/Http11InputBuffer.java 
b/java/org/apache/coyote/http11/Http11InputBuffer.java
index fd054d7..0824a69 100644
--- a/java/org/apache/coyote/http11/Http11InputBuffer.java
+++ b/java/org/apache/coyote/http11/Http11InputBuffer.java
@@ -270,6 +270,8 @@ public class Http11InputBuffer implements InputBuffer, 
ApplicationBufferHandler
         parsingHeader = true;
         swallowInput = true;
 
+        chr = 0;
+        prevChr = 0;
         headerParsePos = HeaderParsePosition.HEADER_START;
         parsingRequestLine = true;
         parsingRequestLinePhase = 0;


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to