关于RemotingClient异步请求后钩子函数的执行问题 #6323
-
在我最近阅读remoting包下的NettyRemotingClient和NettyRemotingAbstract时,发现在进行异步请求后,并不会对RPCHook进行进一步调用。我对此还使用test包下的RemotingServerTest进行测试:
// assertThat(responseFuture.getResponseCommand().getLanguage()).isEqualTo(LanguageCode.JAVA);
}` 但未执行RPCHook中的doAfterResponse方法,所以对此有疑惑,这个钩子函数会在何时才会执行还是说异步请求无需进行,感谢解答! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Beta Was this translation helpful? Give feedback.
-
@FantasyChen-DH I think it is a bug rather than a feature, the execution of hook should not depend on the sync/async way of the invocation. It will be great if you could fix it. |
Beta Was this translation helpful? Give feedback.
@FantasyChen-DH I think it is a bug rather than a feature, the execution of hook should not depend on the sync/async way of the invocation. It will be great if you could fix it.