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 2022/04/02 09:15:52 UTC

[GitHub] [incubator-brpc] yz-cyz commented on issue #1269: brpc客户端如何设置自动重连?

yz-cyz commented on issue #1269:
URL: https://github.com/apache/incubator-brpc/issues/1269#issuecomment-1086598379


   @cdjingit 请教下, channel的两端网络突然中断后,大概多久健康检查会发现并且会断开。
   
   我们遇到的问题是网络中断后, 健康检查好像并没有生效,比如A -> B ,  断网后很长一段时间内, A发给B的请求,还是会写入到socket的发送缓冲区(最少持续写入了10s以上), 导致断网恢复时B突然收到大量请求。 
   
   看log, 10分钟后, 所有的请求还是会报E1008 超时错误, 而不是 E112 (Not connected to xxx),
   
   配置:health_check_interval = 3,   health_check_timeout_ms = 500。


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