wwbmmm commented on code in PR #1814:
URL: https://github.com/apache/incubator-brpc/pull/1814#discussion_r913344857


##########
src/brpc/socket.h:
##########
@@ -747,6 +750,11 @@ friend void DereferenceSocket(Socket*);
     // Non-zero when health-checking is on.
     int _health_check_interval_s;
 
+    // Default: true,
+    // false when client SocketMap has removed socket.
+    // It can be synchronized via _versioned_ref atomic variable
+    bool _enalbe_health_check;

Review Comment:
   是不是可以StopHealthCheck的时候直接把_health_check_interval_s改成-1,这样就不用加字段了



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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

Reply via email to