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

Method OnNewConnections

src/brpc/acceptor.cpp:329–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

327}
328
329void Acceptor::OnNewConnections(Socket* acception) {
330 int progress = Socket::PROGRESS_INIT;
331 do {
332 OnNewConnectionsUntilEAGAIN(acception);
333 if (acception->Failed()) {
334 return;
335 }
336 } while (acception->MoreReadEvents(&progress));
337}
338
339void Acceptor::BeforeRecycle(Socket* sock) {
340 BAIDU_SCOPED_LOCK(_map_mutex);

Callers

nothing calls this directly

Calls 2

MoreReadEventsMethod · 0.80
FailedMethod · 0.45

Tested by

no test coverage detected