MCPcopy Create free account
hub / github.com/apache/brpc / SocketMapRemove

Function SocketMapRemove

src/brpc/socket_map.cpp:113–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113void SocketMapRemove(const SocketMapKey& key) {
114 SocketMap* m = get_client_side_socket_map();
115 if (m) {
116 // TODO: We don't have expected_id to pass right now since the callsite
117 // at NamingServiceThread is hard to be fixed right now. As long as
118 // FLAGS_health_check_interval is limited to positive, SocketMapInsert
119 // never replaces the sockets, skipping comparison is still right.
120 m->Remove(key, INVALID_SOCKET_ID);
121 }
122}
123
124void SocketMapList(std::vector<SocketId>* ids) {
125 SocketMap* m = get_client_side_socket_map();

Callers 5

workerFunction · 0.85
TEST_FFunction · 0.85
~ChannelMethod · 0.85
~ActionsMethod · 0.85
ResetServersMethod · 0.85

Calls 2

RemoveMethod · 0.45

Tested by 2

workerFunction · 0.68
TEST_FFunction · 0.68