vinllen opened a new issue, #2271:
URL: https://github.com/apache/brpc/issues/2271

   **Describe the bug (描述bug)**
   不是bug,里面没有提问类别,就提这个了。
   
   
[官方文档](https://brpc.apache.org/zh/docs/client/basics/#%E8%B6%85%E6%97%B6)里面描述:
   > 
ChannelOptions.timeout_ms是对应Channel上所有RPC的总超时,Controller.set_timeout_ms()可修改某次RPC的值
   
   
"对应Channel上所有RPC的总超时"这个怎么理解,比如我channel设置timeout是3秒,这个时候如果有10条并行的请求发送(复用一个channel),那么是每条请求超时是300ms吗?
   问题的背景是我们自己搞了一个channel cache,同一个peer复用一个channel,但是发现有时候会报错Reached 
timeout,如果改为每次都重新创建channel就没有问题。
   
   **To Reproduce (复现方法)**
   
   
   **Expected behavior (期望行为)**
   
   
   **Versions (各种版本)**
   OS:
   Compiler:
   brpc:
   protobuf:
   
   **Additional context/screenshots (更多上下文/截图)**
   
   


-- 
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: dev-unsubscr...@brpc.apache.org.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org

Reply via email to