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 2019/11/13 14:56:10 UTC
[tomcat] branch 8.5.x updated: Fix
https://bz.apache.org/bugzilla/show_bug.cgi?id=63916 speed up test
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
The following commit(s) were added to refs/heads/8.5.x by this push:
new 8475c0f Fix https://bz.apache.org/bugzilla/show_bug.cgi?id=63916 speed up test
8475c0f is described below
commit 8475c0fdeb39de2110d3659653fe54cdc35f572d
Author: Mark Thomas <ma...@apache.org>
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 8acffa7..e9e9059 100644
--- a/test/org/apache/catalina/nonblocking/TestNonBlockingAPI.java
+++ b/test/org/apache/catalina/nonblocking/TestNonBlockingAPI.java
@@ -154,7 +154,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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org