You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by "ghosts321 (via GitHub)" <gi...@apache.org> on 2024/04/12 02:54:10 UTC

[I] 如何在handler中获取请求和响应的超时时间 [servicecomb-java-chassis]

ghosts321 opened a new issue, #4296:
URL: https://github.com/apache/servicecomb-java-chassis/issues/4296

   如题


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] 如何在handler中获取请求和响应的超时时间 [servicecomb-java-chassis]

Posted by "ghosts321 (via GitHub)" <gi...@apache.org>.
ghosts321 commented on issue #4296:
URL: https://github.com/apache/servicecomb-java-chassis/issues/4296#issuecomment-2054595005

   @liubao68 在执行RPC请求前后进行一些额外的处理,包括处理超时、将RPC请求提交到业务线程池中执行、处理异常等


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] 如何在handler中获取请求和响应的超时时间 [servicecomb-java-chassis]

Posted by "ghosts321 (via GitHub)" <gi...@apache.org>.
ghosts321 commented on issue #4296:
URL: https://github.com/apache/servicecomb-java-chassis/issues/4296#issuecomment-2050885224

   public void handle(Invocation invocation, AsyncResponse asyncResp) throws Exception {
           
       }
   在Invocation和AsyncResponse中没有直接获取请求超时时间的方法,有其他方法能够获取到吗?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] 如何在handler中获取请求和响应的超时时间 [servicecomb-java-chassis]

Posted by "liubao68 (via GitHub)" <gi...@apache.org>.
liubao68 commented on issue #4296:
URL: https://github.com/apache/servicecomb-java-chassis/issues/4296#issuecomment-2058069419

   服务端收到请求后就会一直处理,不存在超时配置。 除非在业务处理过程中增加超时检测。 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] 如何在handler中获取请求和响应的超时时间 [servicecomb-java-chassis]

Posted by "ghosts321 (via GitHub)" <gi...@apache.org>.
ghosts321 commented on issue #4296:
URL: https://github.com/apache/servicecomb-java-chassis/issues/4296#issuecomment-2058064605

   > 可以看看 invocation.getOperationMeta().getConfig().getMsRequestTimeout() 不过你的场景貌似用不到这个值。
   
   应该是分别获取生产者和消费者的超时时间,请问有对应的参数吗?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] 如何在handler中获取请求和响应的超时时间 [servicecomb-java-chassis]

Posted by "liubao68 (via GitHub)" <gi...@apache.org>.
liubao68 commented on issue #4296:
URL: https://github.com/apache/servicecomb-java-chassis/issues/4296#issuecomment-2056627769

   可以看看 invocation.getOperationMeta().getConfig().getMsRequestTimeout()  不过你的场景貌似用不到这个值。 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] 如何在handler中获取请求和响应的超时时间 [servicecomb-java-chassis]

Posted by "liubao68 (via GitHub)" <gi...@apache.org>.
liubao68 commented on issue #4296:
URL: https://github.com/apache/servicecomb-java-chassis/issues/4296#issuecomment-2054574775

   这样做的是解决什么问题了?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] 如何在handler中获取请求和响应的超时时间 [servicecomb-java-chassis]

Posted by "ghosts321 (via GitHub)" <gi...@apache.org>.
ghosts321 closed issue #4296: 如何在handler中获取请求和响应的超时时间
URL: https://github.com/apache/servicecomb-java-chassis/issues/4296


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org