Skip to content

Commit

Permalink
Revert clear response operation of timeoutfilter (#11562)
Browse files Browse the repository at this point in the history
* revert clear response operation of timeoutfilter

Signed-off-by: crazyhzm <[email protected]>

* remove useless import

Signed-off-by: crazyhzm <[email protected]>

---------

Signed-off-by: crazyhzm <[email protected]>
  • Loading branch information
CrazyHZM authored Feb 15, 2023
1 parent 0ad7e40 commit 59a62a6
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import org.apache.dubbo.common.extension.Activate;
import org.apache.dubbo.common.logger.ErrorTypeAwareLogger;
import org.apache.dubbo.common.logger.LoggerFactory;
import org.apache.dubbo.rpc.AppResponse;
import org.apache.dubbo.rpc.Filter;
import org.apache.dubbo.rpc.Invocation;
import org.apache.dubbo.rpc.Invoker;
Expand Down Expand Up @@ -51,7 +50,6 @@ public void onResponse(Result appResponse, Invoker<?> invoker, Invocation invoca
if (obj != null) {
TimeoutCountDown countDown = (TimeoutCountDown) obj;
if (countDown.isExpired()) {
((AppResponse) appResponse).clear(); // clear response in case of timeout.
if (logger.isWarnEnabled()) {
logger.warn(PROXY_TIMEOUT_REQUEST, "", "", "invoke timed out. method: " + invocation.getMethodName() +
" url is " + invoker.getUrl() + ", invoke elapsed " + countDown.elapsedMillis() + " ms.");
Expand Down

0 comments on commit 59a62a6

Please sign in to comment.