This is an automated email from the ASF dual-hosted git repository.
markt-asf 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 4b1eb9a166 Fix a gap in async error handling
4b1eb9a166 is described below
commit 4b1eb9a1664b10471f5740279d9f2e2259c5d108
Author: Mark Thomas <[email protected]>
AuthorDate: Mon Sep 28 17:21:23 2026 +0100
Fix a gap in async error handling
---
java/org/apache/coyote/AsyncStateMachine.java | 2 +-
webapps/docs/changelog.xml | 5 +++++
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/java/org/apache/coyote/AsyncStateMachine.java
b/java/org/apache/coyote/AsyncStateMachine.java
index 41f4e16b6d..c48c7384be 100644
--- a/java/org/apache/coyote/AsyncStateMachine.java
+++ b/java/org/apache/coyote/AsyncStateMachine.java
@@ -220,7 +220,7 @@ class AsyncStateMachine {
}
boolean isAsyncError() {
- return state == AsyncState.ERROR;
+ return state == AsyncState.ERROR || state == AsyncState.MUST_ERROR;
}
boolean isCompleting() {
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index b87bfa87de..7afc205446 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -223,6 +223,11 @@
<fix>
Allow for absolute host names in SNI checks. (markt)
</fix>
+ <fix>
+ Correct a gap in asynchronous error handling that could lead to
+ unexpected <code>IllegalStateExceptions</code> for some error
+ conditions. (markt)
+ </fix>
</changelog>
</subsection>
<subsection name="Jasper">
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]