MCPcopy Create free account
hub / github.com/FoundationDB/fdb-document-layer / extProxy

Function extProxy

src/DocLayer.actor.cpp:336–354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

334}
335
336ACTOR void extProxy(NetworkAddress listenAddr, NetworkAddress connectAddr) {
337 state ActorCollection connections(false);
338
339 try {
340 state Reference<IListener> listener = INetworkConnections::net()->listen(listenAddr);
341
342 loop choose {
343 when(Reference<IConnection> conn = wait(listener->accept())) {
344 Reference<BufferedConnection> bc(new BufferedConnection(conn));
345 connections.add(extProxyConnection(bc, connectAddr));
346 }
347 when(wait(connections.getResult())) { ASSERT(false); }
348 }
349 } catch (Error& e) {
350 fprintf(stderr, "FdbDocProxy: fatal error: %s\n", e.what());
351 g_network->stop();
352 throw;
353 }
354}
355
356THREAD_FUNC networkThread(void* api) {
357 ((FDB::API*)api)->runNetwork();

Callers 1

DocLayer.actor.cppFile · 0.85

Calls 2

stopMethod · 0.80
whenFunction · 0.70

Tested by

no test coverage detected