hannelHandlerContext ctx) { ? ? ? ? ctx.flush(); ? ? } ? ? ? ? @Override ? ? public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) { ? ? ? ? // Close the connection when an exception is raised. ? ? ? ? cause.printStackTrace(); ? ? ? ? ctx.close(); ? ? } }
|