gydong commented on issue #1069:
URL: https://github.com/apache/incubator-brpc/issues/1069#issuecomment-616898361


   1、尽管是单连接,但实例析构之后,连接不会得到复用,而是会重复建立连接。(这一点用ss命令查看确认一下即可)  
   2、reuse_addr 
保持默认的true即可,但这个选项和你遇到的问题关系应该不大,怎么设置都解决不了你遇到的问题。原因是从brpc的实现来看,reuse_addr这个开关只对server端的listen动作管用,对于client端的connect动作是没有任何作用的。
  
   综上,要解决你的问题,应该让channel实例得到复用。


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to