WonderLiu96 opened a new issue, #2384: URL: https://github.com/apache/brpc/issues/2384
**Is your feature request related to a problem? (你需要的功能是否与某个问题有关?)** 在这样一个场景中,client使用`CONNECTION_TYPE_SINGLE`建立channel与server通信。当client长时间没有和server通信(超过server端配置的`idle_timeout_s`),之后cient再次访问时,抛出E112 Not Connectted的错误。 在我们的场景中,存在很多这样的低频访问,我们不想把这个错误抛出来,是否存在某种机制可以检查这样的情况? **Describe the solution you'd like (描述你期望的解决方法)** 我看了brpc是存在健康检查的,但是它的健康检查机制也是先抛出错误再进行check,而且是使用`Connect()`重新建立,不太符合我们的需求。另一种方式是想着捕获这个错误,但是看了官方文档,会有很多情况出现E112,不知道有没有更细致的错误码? **Describe alternatives you've considered (描述你想到的折衷方案)** 目前我们折衷的方案是调大`idle_timeout_s`的值来暂时规避 **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