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

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


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

commit 411caf29ac1c16e6ac291b6e5543b2371dbd25e2
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 9611cf8..94c5d0f 100644
--- a/java/org/apache/coyote/Request.java
+++ b/java/org/apache/coyote/Request.java
@@ -790,6 +790,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 2b5d3c3..74b3af5 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -146,6 +146,11 @@
         received for completed streams else the flow control window  may become
         exhausted. (markt)
       </fix>
+      <fix>
+        <bug>65203</bug>: Fix a regression introduced in 8.5.64 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="Other">

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

Reply via email to