Index: code/modules/grizzly/src/main/java/com/sun/grizzly/ssl/SSLFilter.java =================================================================== --- code/modules/grizzly/src/main/java/com/sun/grizzly/ssl/SSLFilter.java (revision 4345) +++ code/modules/grizzly/src/main/java/com/sun/grizzly/ssl/SSLFilter.java Wed Apr 14 14:12:23 CDT 2010 @@ -202,7 +202,25 @@ doHandshakeStep(sslEngine, ctx); } + @Override + public NextAction handleClose(FilterChainContext ctx) throws IOException { + if (dumbVolatile != 0) { + final Connection connection = ctx.getConnection(); + SSLEngine sslEngine = SSLUtils.getSSLEngine(connection); + + if (sslEngine != null && SSLUtils.isHandshaking(sslEngine)) { + + final CompletionHandler completionHandler = + handshakeCompletionHandlerAttr.get(ctx.getConnection()); + if (completionHandler != null) { + completionHandler.failed(new java.io.EOFException()); + } + } + } + return ctx.getInvokeAction(); + } + - protected Buffer doHandshakeStep(final SSLEngine sslEngine, + protected Buffer doHandshakeStep(final SSLEngine sslEngine, FilterChainContext context) throws SSLException, IOException { final Connection connection = context.getConnection();