Permalink
Browse files

jetty-9 ssl tests pass

  • Loading branch information...
1 parent ba4157d commit 8f8c3f77607704099dda239e5ddfb863626d9dcc @gregw gregw committed May 3, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 jetty-io/src/main/java/org/eclipse/jetty/io/SslConnection.java
@@ -62,7 +62,6 @@ protected void dispatch(Runnable callback)
_appReadTask=callback;
}
};
-
private IOFuture.Callback _writeable = new IOFuture.Callback()
{
@@ -75,7 +74,11 @@ public void onReady()
@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 @@ void completeWrite()
_lock.lock();
try
{
- if (!_appWriteFuture.isComplete())
- throw new IllegalStateException("previous write not complete");
-
// Try to process all
for (ByteBuffer b : _writeBuffers)
{

0 comments on commit 8f8c3f7

Please sign in to comment.