private void fireWriteError(String requestPart, Throwable cause, ChannelHandlerContext ctx) throws Exception { final String errMesg = String.format("Error writing %s to client", requestPart); if (cause instanceof java.nio.channels.ClosedChannelException || cause instanceof Errors.NativeIoException) { LOG.info(errMesg + " - client connection is closed."); if (zuulRequest != null) { zuulRequest.getContext().cancel(); StatusCategoryUtils.storeStatusCategoryIfNotAlreadyFailure(zuulRequest.getContext(), ZuulStatusCategory.FAILURE_CLIENT_CANCELLED); } } else { LOG.error(errMesg, cause); ctx.fireExceptionCaught(new ZuulException(cause, errMesg, true)); } }
private void fireWriteError(String requestPart, Throwable cause, ChannelHandlerContext ctx) throws Exception { final String errMesg = String.format("Error writing %s to client", requestPart); if (cause instanceof java.nio.channels.ClosedChannelException || cause instanceof Errors.NativeIoException) { LOG.info(errMesg + " - client connection is closed."); if (zuulRequest != null) { zuulRequest.getContext().cancel(); StatusCategoryUtils.storeStatusCategoryIfNotAlreadyFailure(zuulRequest.getContext(), ZuulStatusCategory.FAILURE_CLIENT_CANCELLED); } } else { LOG.error(errMesg, cause); ctx.fireExceptionCaught(new ZuulException(cause, errMesg, true)); } }
final CompleteReason reason = ((CompleteEvent) evt).getReason(); if (zuulRequest != null) { zuulRequest.getContext().cancel(); zuulRequest.disposeBufferedBody(); final CurrentPassport passport = CurrentPassport.fromSessionContext(zuulRequest.getContext());
final CompleteReason reason = ((CompleteEvent) evt).getReason(); if (zuulRequest != null) { zuulRequest.getContext().cancel(); zuulRequest.disposeBufferedBody(); final CurrentPassport passport = CurrentPassport.fromSessionContext(zuulRequest.getContext());
private void fireWriteError(String requestPart, Throwable cause, ChannelHandlerContext ctx) throws Exception { final String errMesg = String.format("Error writing %s to client", requestPart); if (cause instanceof java.nio.channels.ClosedChannelException || cause instanceof Errors.NativeIoException) { LOG.info(errMesg + " - client connection is closed."); if (zuulRequest != null) { zuulRequest.getContext().cancel(); StatusCategoryUtils.storeStatusCategoryIfNotAlreadyFailure(zuulRequest.getContext(), ZuulStatusCategory.FAILURE_CLIENT_CANCELLED); } } else { LOG.error(errMesg, cause); ctx.fireExceptionCaught(new ZuulException(cause, errMesg, true)); } }
final CompleteReason reason = ((CompleteEvent) evt).getReason(); if (zuulRequest != null) { zuulRequest.getContext().cancel(); zuulRequest.disposeBufferedBody(); final CurrentPassport passport = CurrentPassport.fromSessionContext(zuulRequest.getContext());