Example #1
0
			/// <exception cref="System.Exception"/>
			public override void ExceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e)
			{
				Org.Jboss.Netty.Channel.Channel ch = e.GetChannel();
				Exception cause = e.GetCause();
				if (cause is TooLongFrameException)
				{
					this.SendError(ctx, HttpResponseStatus.BadRequest);
					return;
				}
				else
				{
					if (cause is IOException)
					{
						if (cause is ClosedChannelException)
						{
							ShuffleHandler.Log.Debug("Ignoring closed channel error", cause);
							return;
						}
						string message = cause.Message.ToString();
						if (ShuffleHandler.IgnorableErrorMessage.Matcher(message).Matches())
						{
							ShuffleHandler.Log.Debug("Ignoring client socket close", cause);
							return;
						}
					}
				}
				ShuffleHandler.Log.Error("Shuffle error: ", cause);
				if (ch.IsConnected())
				{
					ShuffleHandler.Log.Error("Shuffle error " + e);
					this.SendError(ctx, HttpResponseStatus.InternalServerError);
				}
			}
            /// <exception cref="System.Exception"/>
            public override void ExceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e)
            {
                Org.Jboss.Netty.Channel.Channel ch = e.GetChannel();
                Exception cause = e.GetCause();

                if (TestDelegationTokenRemoteFetcher.Log.IsDebugEnabled())
                {
                    TestDelegationTokenRemoteFetcher.Log.Debug(cause.Message);
                }
                ch.Close().AddListener(ChannelFutureListener.Close);
            }
Example #3
0
 public override void ExceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e)
 {
     Log.Warn("Unexpected exception from downstream: ", e.GetCause());
     e.GetChannel().Close();
 }
Example #4
0
 public override void ExceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e)
 {
     Log.Warn("Encountered ", e.GetCause());
     e.GetChannel().Close();
 }