-
Notifications
You must be signed in to change notification settings - Fork 814
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
如何在handler中获取请求和响应的超时时间 #4296
Comments
public void handle(Invocation invocation, AsyncResponse asyncResp) throws Exception {
在Invocation和AsyncResponse中没有直接获取请求超时时间的方法,有其他方法能够获取到吗? |
这样做的是解决什么问题了? |
@liubao68 在执行RPC请求前后进行一些额外的处理,包括处理超时、将RPC请求提交到业务线程池中执行、处理异常等 |
可以看看 invocation.getOperationMeta().getConfig().getMsRequestTimeout() 不过你的场景貌似用不到这个值。 |
应该是分别获取生产者和消费者的超时时间,请问有对应的参数吗? |
服务端收到请求后就会一直处理,不存在超时配置。 除非在业务处理过程中增加超时检测。 |
如题
The text was updated successfully, but these errors were encountered: