MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / tcp_count_processes

Function tcp_count_processes

net/net_tcp.c:2375–2386  ·  view source on GitHub ↗

counts the number of TCP processes to start with; this number may * change during runtime due auto-scaling */

Source from the content-addressed store, hash-verified

2373/* counts the number of TCP processes to start with; this number may
2374 * change during runtime due auto-scaling */
2375int tcp_count_processes(unsigned int *extra)
2376{
2377 if (extra) *extra = 0;
2378
2379 if (tcp_disabled)
2380 return 0;
2381
2382 if (s_profile && extra && s_profile->max_procs > tcp_workers_no)
2383 *extra = s_profile->max_procs - tcp_workers_no;
2384
2385 return 1 /* tcp main / IO process */ + tcp_workers_no /* dispatch workers */;
2386}
2387
2388
2389int tcp_start_processes(int *chd_rank, int *startup_done)

Callers 3

mainFunction · 0.85
count_child_processesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected