chasing the race bug

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@398 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Greg Wilkins 2009-06-15 23:42:35 +00:00
parent 3aae319f37
commit 5ad86fc8a8
3 changed files with 7 additions and 47 deletions

View File

@ -385,6 +385,7 @@ public class HttpConnection implements Connection
try
{
_handling=true;
assert getCurrentConnection()==null;
setCurrentConnection(this);
while (more_in_buffer)

View File

@ -64,10 +64,10 @@ public class StressTest extends TestCase
_threads.setMaxThreads(500);
_server.setThreadPool(_threads);
SelectChannelConnector c_connector=new SelectChannelConnector();
c_connector.setAcceptors(4);
c_connector.setAcceptors(1);
c_connector.setAcceptQueueSize(1000);
//c_connector.setPort(8080);
// c_connector.setPort(8080);
_connector=c_connector;
_connector.setMaxIdleTime(30000);
@ -77,8 +77,8 @@ public class StressTest extends TestCase
_server.start();
_port=_connector.getLocalPort();
_addr=Inet4Address.getLocalHost();
//_addr=Inet4Address.getByName("10.10.1.16");
System.err.println("ADDR "+_addr+":"+_port);
// _addr=Inet4Address.getByName("10.10.1.16");
// System.err.println("ADDR "+_addr+":"+_port);
for (Queue q:_latencies)
q.clear();
@ -397,50 +397,9 @@ public class StressTest extends TestCase
doThreads(200,400,true);
}
else
doThreads(50,100,true);
doThreads(100,100,true);
}
/*
public void testNonPersistent0() throws Throwable
{
testNonPersistent();
}
public void testPersistent0() throws Throwable
{
testPersistent();
}
public void testNonPersistent1() throws Throwable
{
testNonPersistent();
}
public void testPersistent1() throws Throwable
{
testPersistent();
}
public void testNonPersistent2() throws Throwable
{
testNonPersistent();
}
public void testPersistent2() throws Throwable
{
testPersistent();
}
public void testNonPersistent3() throws Throwable
{
testNonPersistent();
}
public void testPersistent3() throws Throwable
{
testPersistent();
}
*/
private int count(String s,String sub)

View File

@ -57,7 +57,7 @@ public class Log
public Boolean run()
{
__logClass = System.getProperty("org.eclipse.jetty.util.log.class","org.eclipse.jetty.util.log.Slf4jLog");
__ignored = System.getProperty("org.eclipse.jetty.util.log.IGNORED",null)!=null;
__ignored = Boolean.parseBoolean(System.getProperty("org.eclipse.jetty.util.log.IGNORED","false"));
return true;
}
});