@@ -82,18 +82,21 @@ struct SocketMapKeyHasher {
8282int SocketMapInsert (const SocketMapKey& key, SocketId* id,
8383 const std::shared_ptr<SocketSSLContext>& ssl_ctx,
8484 bool use_rdma,
85- const HealthCheckOption& hc_option);
85+ const HealthCheckOption& hc_option,
86+ butil::EndPoint& client_end_point);
8687
8788inline int SocketMapInsert (const SocketMapKey& key, SocketId* id,
8889 const std::shared_ptr<SocketSSLContext>& ssl_ctx) {
8990 HealthCheckOption hc_option;
90- return SocketMapInsert (key, id, ssl_ctx, false , hc_option);
91+ butil::EndPoint endpoint;
92+ return SocketMapInsert (key, id, ssl_ctx, false , hc_option, endpoint);
9193}
9294
9395inline int SocketMapInsert (const SocketMapKey& key, SocketId* id) {
9496 std::shared_ptr<SocketSSLContext> empty_ptr;
9597 HealthCheckOption hc_option;
96- return SocketMapInsert (key, id, empty_ptr, false , hc_option);
98+ butil::EndPoint endpoint;
99+ return SocketMapInsert (key, id, empty_ptr, false , hc_option, endpoint);
97100}
98101
99102// Find the SocketId associated with `key'.
@@ -155,17 +158,20 @@ class SocketMap {
155158 int Insert (const SocketMapKey& key, SocketId* id,
156159 const std::shared_ptr<SocketSSLContext>& ssl_ctx,
157160 bool use_rdma,
158- const HealthCheckOption& hc_option);
161+ const HealthCheckOption& hc_option,
162+ butil::EndPoint& client_end_point);
159163
160164 int Insert (const SocketMapKey& key, SocketId* id,
161165 const std::shared_ptr<SocketSSLContext>& ssl_ctx) {
162166 HealthCheckOption hc_option;
163- return Insert (key, id, ssl_ctx, false , hc_option);
167+ butil::EndPoint endpoint;
168+ return Insert (key, id, ssl_ctx, false , hc_option, endpoint);
164169 }
165170 int Insert (const SocketMapKey& key, SocketId* id) {
166171 std::shared_ptr<SocketSSLContext> empty_ptr;
167172 HealthCheckOption hc_option;
168- return Insert (key, id, empty_ptr, false , hc_option);
173+ butil::EndPoint endpoint;
174+ return Insert (key, id, empty_ptr, false , hc_option, endpoint);
169175 }
170176
171177 void Remove (const SocketMapKey& key, SocketId expected_id);
0 commit comments