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-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org