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 8ece47c Fix BZ 65203 Correct regression in previous release.
8ece47c is described below
commit 8ece47c4a9fb9349e8862c84358a4dd23c643a24
Author: Mark Thomas <[email protected]>
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 36f91c2..7032db6 100644
--- a/java/org/apache/coyote/Request.java
+++ b/java/org/apache/coyote/Request.java
@@ -761,6 +761,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 b8ad633..44019ea 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 9.0.44 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: [email protected]
For additional commands, e-mail: [email protected]