jetty-9 slow progress on SSL robustness

This commit is contained in:
Greg Wilkins 2012-05-04 19:10:24 +02:00
parent 6e62ab9bbe
commit 9a5f86188e
3 changed files with 3 additions and 5 deletions

View File

@ -175,7 +175,7 @@ public class DispatchedIOFuture implements IOFuture
_lock.lock();
try
{
if (!_complete)
while (!_complete)
_block.await();
isReady();
}

View File

@ -239,7 +239,6 @@ public class SslConnection extends AbstractAsyncConnection
@Override
public void onIdleExpired(long idleForMs)
{
System.err.println("LAST "+(System.currentTimeMillis()-_last));
_appConnection.onIdleExpired(idleForMs);
}
@ -253,7 +252,6 @@ public class SslConnection extends AbstractAsyncConnection
_lock.lock();
try
{
System.err.println("onReadable");
_last=System.currentTimeMillis();
LOG.debug("onReadable {}",this);
@ -296,6 +294,7 @@ public class SslConnection extends AbstractAsyncConnection
// Run any ready callback from _appReadFuture in this thread.
_appReadFuture.run();
_appWriteFuture.run();
}
}

View File

@ -131,7 +131,6 @@ public class SelectChannelEndPointTest
@Override
public synchronized void onReadable()
{
System.err.println("APP onReadable");
try
{
_last=System.currentTimeMillis();
@ -508,7 +507,7 @@ public class SelectChannelEndPointTest
server.configureBlocking(false);
_manager.register(server);
int writes = 10000;
int writes = 1000;
final byte[] bytes="HelloWorld-".getBytes(StringUtil.__UTF8_CHARSET);
byte[] count="0\n".getBytes(StringUtil.__UTF8_CHARSET);