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 2023/01/09 02:51:24 UTC

[GitHub] [incubator-brpc] TousakaRin commented on issue #2051: 应用层如何感知连接的断开和重连

TousakaRin commented on issue #2051:
URL: https://github.com/apache/incubator-brpc/issues/2051#issuecomment-1375042065

   @yongxiangzheng  还有一个比较tricky的方法,把你的要推送的信息作为Authentication信息,brpc在连接建立之后,第一个message会带上Authentication信息,服务端会调用VerifyCredential去验证,这个方法可以在连接建立的时候插入回调。接口在[这里](https://github.com/apache/incubator-brpc/blob/60159fc3f3e13490fb9806ea0a0cb0dcdbda7f7d/src/brpc/authenticator.h),继承这个类之后,将对象插入到channel和server的options里。


-- 
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-unsubscribe@brpc.apache.org

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