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

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

commit 6036c21bcdf247ec823b624149260d5b43853ea3
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 421b3b4..23668f5 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