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

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

commit 90cd91c3d96ba107ade6b90332174313109c83c5
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Thu Mar 25 16:18:18 2021 +0000

    When using a thread may still be in async mode here
---
 test/org/apache/catalina/core/TestAsyncContextImpl.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/org/apache/catalina/core/TestAsyncContextImpl.java 
b/test/org/apache/catalina/core/TestAsyncContextImpl.java
index 2995fe0..bba6408 100644
--- a/test/org/apache/catalina/core/TestAsyncContextImpl.java
+++ b/test/org/apache/catalina/core/TestAsyncContextImpl.java
@@ -2848,7 +2848,7 @@ public class TestAsyncContextImpl extends TomcatBaseTest {
             } else {
                 ac.dispatch("/simpleServlet");
             }
-            if (req.isAsyncStarted()) {
+            if (!useThread && req.isAsyncStarted()) {
                 invalidStateDetected = true;
             }
         }

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to