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
The following commit(s) were added to refs/heads/master by this push:
new 38e7f28 Fix https://bz.apache.org/bugzilla/show_bug.cgi?id=63916
speed up test
38e7f28 is described below
commit 38e7f28b290f62ae1f4bae7aa562b59f218a7f94
Author: Mark Thomas <[email protected]>
AuthorDate: Wed Nov 13 14:54:57 2019 +0000
Fix https://bz.apache.org/bugzilla/show_bug.cgi?id=63916 speed up test
---
test/org/apache/catalina/nonblocking/TestNonBlockingAPI.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/test/org/apache/catalina/nonblocking/TestNonBlockingAPI.java
b/test/org/apache/catalina/nonblocking/TestNonBlockingAPI.java
index 7f16f26..f93b277 100644
--- a/test/org/apache/catalina/nonblocking/TestNonBlockingAPI.java
+++ b/test/org/apache/catalina/nonblocking/TestNonBlockingAPI.java
@@ -157,7 +157,10 @@ public class TestNonBlockingAPI extends TomcatBaseTest {
String servletName = NBWriteServlet.class.getName();
Tomcat.addServlet(ctx, servletName, servlet);
ctx.addServletMappingDecoded("/", servletName);
- tomcat.getConnector().setProperty("socket.txBufSize", "1024");
+ // Note: Low values of socket.txBufSize can trigger very poor
+ // performance. Set it just low enough to ensure that the
+ // non-blocking write servlet will see isReady() == false
+ tomcat.getConnector().setProperty("socket.txBufSize", "1048576");
tomcat.start();
SocketFactory factory = SocketFactory.getDefault();
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]