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

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

commit a2d1c8b3711104a708b760ac73099f2d11850805
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 91159fb3ea..bdd663fad4 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -398,6 +398,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]

Reply via email to