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 2019/10/08 06:04:58 UTC

[GitHub] [incubator-brpc] jamesge edited a comment on issue #936: server端正常,但是客户端收到错误码

jamesge edited a comment on issue #936: server端正常,但是客户端收到错误码
URL: https://github.com/apache/incubator-brpc/issues/936#issuecomment-539306279
 
 
   这个错误的表面原因是[连续3次](https://github.com/apache/incubator-brpc/blob/fc07b7bf45c4b2aa90ae5c832f3b48a8da124640/src/brpc/socket.cpp#L93)连接超时触发熔断,client会对那个server[每隔3秒](https://github.com/apache/incubator-brpc/blob/fc07b7bf45c4b2aa90ae5c832f3b48a8da124640/src/brpc/socket_map.cpp#L35)做健康检查,直到连上或机器被移除为止。这个功能的动机是防止持续访问频繁失联的机器。"连续3次连接超时"还是比较强的限制,只要中间任何一次成功了,就会从头算起,如果觉得这个还松,可以继续调大。调到很大的数值就相当于取消了这个功能。

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


With regards,
Apache Git Services

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