You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by GitBox <gi...@apache.org> on 2020/12/24 03:14:15 UTC

[GitHub] [incubator-brpc] walterzhaoJR opened a new issue #1309: 使用brpc::Channel 时,重复init导致无法连接到server

walterzhaoJR opened a new issue #1309:
URL: https://github.com/apache/incubator-brpc/issues/1309


   使用brpc::Channel 时,重复init导致无法连接到server。
   我的使用场景是,每当server 的发生主备切换后,我需要重新和server 的新leader 建立连接,这个时候会重复init 同一个brpc::Channel,最近偶现连接server失败,错误信息是error:112。目前通过在每次重连的时候使用新的brpc::Channel来连接server可以杜绝这个问题。
   这里想请问下:重复init 同一个brpc::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:
users@infra.apache.org



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


[GitHub] [incubator-brpc] walterzhaoJR closed issue #1309: 使用brpc::Channel 时,重复init导致无法连接到server

Posted by GitBox <gi...@apache.org>.
walterzhaoJR closed issue #1309:
URL: https://github.com/apache/incubator-brpc/issues/1309


   


----------------------------------------------------------------
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:
users@infra.apache.org



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


[GitHub] [incubator-brpc] cdjingit commented on issue #1309: 使用brpc::Channel 时,重复init导致无法连接到server

Posted by GitBox <gi...@apache.org>.
cdjingit commented on issue #1309:
URL: https://github.com/apache/incubator-brpc/issues/1309#issuecomment-750724646


   是不合理的方式,看看是否可以选用合适的名字服务。


----------------------------------------------------------------
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:
users@infra.apache.org



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


[GitHub] [incubator-brpc] walterzhaoJR commented on issue #1309: 使用brpc::Channel 时,重复init导致无法连接到server

Posted by GitBox <gi...@apache.org>.
walterzhaoJR commented on issue #1309:
URL: https://github.com/apache/incubator-brpc/issues/1309#issuecomment-751162384


   好的,那我们就每次切主之后,重新连接的时候,使用一个新的brpc::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:
users@infra.apache.org



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