cooper-zhzhang opened a new issue, #2305: URL: https://github.com/apache/brpc/issues/2305
**Describe the bug (描述bug)** 最近在整体细读brpc的代码,但是有个位置的代码不太理解。 在如果一个socket的链接出现问题,就会对该socket开启健康检测。 如果检测成功,该socket又可以使用了,此时会调用Socket::Revive。 在Revive总会把socket的引用次数进行一次+1。这个是什么原因,进入Socket::Revive时引用次数为2,离开该函数时引用次数为3。  **To Reproduce (复现方法)** 无 **Expected behavior (期望行为)** 无 **Versions (各种版本)** OS: debian Compiler: g++ brpc: 1.1 protobuf: 2 **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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
