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

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


The following commit(s) were added to refs/heads/10.1.x by this push:
     new 6c7da60893 Fix a gap in async error handling
6c7da60893 is described below

commit 6c7da60893bd186d6cb2df7330299d7e70e68279
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 eea76d5b3d..885ad0f83a 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -216,6 +216,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