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

Method ConnectionCount

src/brpc/acceptor.cpp:202–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200}
201
202size_t Acceptor::ConnectionCount() const {
203 // Notice that _socket_map may be modified concurrently. This actually
204 // assumes that size() is safe to call concurrently.
205 return _socket_map.size();
206}
207
208void Acceptor::ListConnections(std::vector<SocketId>* conn_list,
209 size_t max_copied) {

Callers 15

TestSuccessMethod · 0.80
TestSuccessParallelMethod · 0.80
TestSuccessSelectiveMethod · 0.80
TestSkipParallelMethod · 0.80
TestSuccessParallel2Method · 0.80
TestAttachmentMethod · 0.80
TestDestroyChannelMethod · 0.80
TestRetryMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by 14

TestSuccessMethod · 0.64
TestSuccessParallelMethod · 0.64
TestSuccessSelectiveMethod · 0.64
TestSkipParallelMethod · 0.64
TestSuccessParallel2Method · 0.64
TestAttachmentMethod · 0.64
TestDestroyChannelMethod · 0.64
TestRetryMethod · 0.64