MCPcopy Create free account
hub / github.com/acl-dev/acl / servers_open

Function servers_open

lib_fiber/cpp/src/fiber_server.cpp:838–861  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

836}
837
838static void servers_open(const char *addrs, int fdtype, int nthreads)
839{
840 const char *pri = !strcmp(acl_var_fiber_master_private, "y") ?
841 "private" : "public";
842 char *unix_path = acl_concatenate(acl_var_fiber_queue_dir, "/",
843 pri, NULL);
844 ACL_ARGV* tokens = acl_search_addrs(addrs, unix_path);
845 int i;
846
847 acl_myfree(unix_path);
848
849 if (tokens == NULL) {
850 acl_msg_fatal("%s(%d), %s: can't find valid addrs from %s",
851 __FILE__, __LINE__, __FUNCTION__, addrs);
852 }
853
854 __servers = servers_alloc(nthreads, tokens->argc, fdtype);
855
856 for (i = 0; i < nthreads; i++) {
857 server_open(__servers[i], tokens);
858 }
859
860 acl_argv_free(tokens);
861}
862
863static void servers_start(FIBER_SERVER **servers, int nthreads)
864{

Callers 1

acl_fiber_server_mainFunction · 0.70

Calls 6

acl_concatenateFunction · 0.85
acl_search_addrsFunction · 0.85
acl_msg_fatalFunction · 0.85
acl_argv_freeFunction · 0.85
servers_allocFunction · 0.70
server_openFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…