jetty-9 ssl tests pass

This commit is contained in:
Greg Wilkins 2012-05-03 07:48:01 +02:00
parent ba4157d8e6
commit 8f8c3f7760
1 changed files with 5 additions and 5 deletions

View File

@ -62,7 +62,6 @@ public class SslConnection extends AbstractAsyncConnection
_appReadTask=callback;
}
};
private IOFuture.Callback _writeable = new IOFuture.Callback()
{
@ -75,7 +74,11 @@ public class SslConnection extends AbstractAsyncConnection
@Override
public void onFail(Throwable cause)
{
LOG.warn("FAILED: "+cause);
LOG.debug("write FAILED",cause);
if (!_appWriteFuture.isComplete())
_appWriteFuture.fail(cause);
else
LOG.warn("write FAILED",cause);
}
};
@ -816,9 +819,6 @@ public class SslConnection extends AbstractAsyncConnection
_lock.lock();
try
{
if (!_appWriteFuture.isComplete())
throw new IllegalStateException("previous write not complete");
// Try to process all
for (ByteBuffer b : _writeBuffers)
{