Skip to content

Commit

Permalink
fix issue-8695:Remove the getRequestWithoutData method from DefaultFu…
Browse files Browse the repository at this point in the history
…ture
  • Loading branch information
stone-98 committed Sep 12, 2021
1 parent 8c2527a commit 4af675b
Showing 1 changed file with 2 additions and 5 deletions.
Expand Up @@ -147,7 +147,7 @@ public static void closeChannel(Channel channel) {
disconnectResponse.setErrorMessage("Channel " +
channel +
" is inactive. Directly return the unFinished request : " +
getRequestWithoutData(future.getRequest()));
(logger.isDebugEnabled() ? future.getRequest() : future.getRequest().copyWithoutData()));
DefaultFuture.received(channel, disconnectResponse);
}
}
Expand Down Expand Up @@ -251,13 +251,10 @@ private String getTimeoutMessage(boolean scan) {
+ (sent > 0 ? " client elapsed: " + (sent - start)
+ " ms, server elapsed: " + (nowTimestamp - sent)
: " elapsed: " + (nowTimestamp - start)) + " ms, timeout: "
+ timeout + " ms, request: " + (logger.isDebugEnabled() ? request : getRequestWithoutData(request)) + ", channel: " + channel.getLocalAddress()
+ timeout + " ms, request: " + (logger.isDebugEnabled() ? request : request.copyWithoutData()) + ", channel: " + channel.getLocalAddress()
+ " -> " + channel.getRemoteAddress();
}

private static Request getRequestWithoutData(Request request) {
return request.copyWithoutData();
}

private static class TimeoutCheckTask implements TimerTask {

Expand Down

0 comments on commit 4af675b

Please sign in to comment.