With acceptCount of 1 need a short delay else connections get rejected as Tomcat doesn't process incoming connections fast enough (on 8-core machine)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@
1056310 13f79535-47bb-0310-9956-
ffa450edef68
}
for (int i=0; i<t.length; i++) {
t[i].start();
+ Thread.sleep(50);
}
for (int i=0; i<t.length; i++) {
t[i].join();
tomcat.getConnector().setProperty("maxConnections", "4");
tomcat.getConnector().setProperty("acceptCount", "1");
tomcat.start();
- Thread.currentThread().sleep(2000);
}
private class TestClient extends SimpleHttpClient {