From 3aaf7cf82bb9443e4a5a60f5cea8dc7da0f49762 Mon Sep 17 00:00:00 2001 From: norman Date: Wed, 22 Aug 2012 07:56:39 +0200 Subject: [PATCH] [#160] Make sure the exception is fired before the channel gets closed --- handler/src/main/java/io/netty/handler/ssl/SslHandler.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/handler/src/main/java/io/netty/handler/ssl/SslHandler.java b/handler/src/main/java/io/netty/handler/ssl/SslHandler.java index 6d67729c14..967f445d1e 100644 --- a/handler/src/main/java/io/netty/handler/ssl/SslHandler.java +++ b/handler/src/main/java/io/netty/handler/ssl/SslHandler.java @@ -658,8 +658,9 @@ public class SslHandler NotSslRecordException e = new NotSslRecordException( "not an SSL/TLS record: " + ByteBufUtil.hexDump(in)); in.skipBytes(in.readableBytes()); + ctx.fireExceptionCaught(e); setHandshakeFailure(e); - throw e; + return; } }