You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2022/12/21 15:46:14 UTC
[tomcat] branch main updated: Fix BZ 63390 - Fix test on Solaris.
This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push:
new b364efe99e Fix BZ 63390 - Fix test on Solaris.
b364efe99e is described below
commit b364efe99e2f1afa2321cdd249d57b92235b21ef
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Wed Dec 21 15:45:43 2022 +0000
Fix BZ 63390 - Fix test on Solaris.
The first server write after a client close doesn't always trigger an
exception on Solaris. Use additional writes to trigger an exception so
the test passes.
---
test/org/apache/catalina/nonblocking/TestNonBlockingAPI.java | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/test/org/apache/catalina/nonblocking/TestNonBlockingAPI.java b/test/org/apache/catalina/nonblocking/TestNonBlockingAPI.java
index 0db6faa900..0609eb05b6 100644
--- a/test/org/apache/catalina/nonblocking/TestNonBlockingAPI.java
+++ b/test/org/apache/catalina/nonblocking/TestNonBlockingAPI.java
@@ -1676,7 +1676,13 @@ public class TestNonBlockingAPI extends TomcatBaseTest {
sos.print("TEST");
stage.incrementAndGet();
} else if (stage.get() == 2) {
+ // This should trigger an error as the client closed the
+ // socket
sos.flush();
+ // Additional writes are required to trigger the error
+ // on solaris
+ sos.print("MORE");
+ log.info("Additional server write after client close to trigger exception");
}
} while (sos.isReady());
} catch (IOException ioe) {
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org