This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/11.0.x by this push:
new 1dc6aa151b Fix a gap in async error handling
1dc6aa151b is described below
commit 1dc6aa151b3b99b32ac9ae7c60e41c326063321b
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 858b19bcf3..f0ef0a3972 100644
--- a/java/org/apache/coyote/AsyncStateMachine.java
+++ b/java/org/apache/coyote/AsyncStateMachine.java
@@ -217,7 +217,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 4a9694dd7f..2802db5ef1 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -222,6 +222,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]