[#160] Make sure the exception is fired before the channel gets closed

This commit is contained in:
norman 2012-08-22 07:56:39 +02:00
parent 00188a2923
commit 3aaf7cf82b

View File

@ -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;
}
}