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

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


The following commit(s) were added to refs/heads/master by this push:
     new b59099e  Fix BZ 65203 Correct regression in previous release.
b59099e is described below

commit b59099e4ca501a039510334ebe1024971cd6f959
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Wed Mar 24 15:11:08 2021 +0000

    Fix BZ 65203 Correct regression in previous release.
    
    Failure to recycle the newly added errorException object meant once an
    error occurred on an aysnc read, all subsequent async reads would fail.
    
    https://bz.apache.org/bugzilla/show_bug.cgi?id=65203
---
 java/org/apache/coyote/Request.java | 2 ++
 webapps/docs/changelog.xml          | 5 +++++
 2 files changed, 7 insertions(+)

diff --git a/java/org/apache/coyote/Request.java 
b/java/org/apache/coyote/Request.java
index 9d609fd..e4726e5 100644
--- a/java/org/apache/coyote/Request.java
+++ b/java/org/apache/coyote/Request.java
@@ -775,6 +775,8 @@ public final class Request {
         authType.recycle();
         attributes.clear();
 
+        errorException = null;
+
         listener = null;
         synchronized (nonBlockingStateLock) {
             fireListener = false;
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index b539065..3455703 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -142,6 +142,11 @@
         received for completed streams else the flow control window  may become
         exhausted. (markt)
       </fix>
+      <fix>
+        <bug>65203</bug>: Fix a regression introduced in 10.0.4 that meant that
+        an error during an asynchronous read broke all future asynchronous 
reads
+        associated with the same request instance. (markt)
+      </fix>
     </changelog>
   </subsection>
   <subsection name="Jasper">

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

Reply via email to