Navigation


Changeset 1396:188c82b6690b in freeDiameter for libfdcore/config.c


Ignore:
Timestamp:
Nov 15, 2019, 7:38:30 PM (4 years ago)
Author:
Thomas Klausner <tk@giga.or.at>
Branch:
default
Phase:
public
Message:

Add ProcessingPeersPattern? and ProcessingPeersMinimum? parameters.

If this is configured, the process will accept all connections from
peers matching ProcessingPeersPattern?, but will NOT accept connections
from other peers until ProcessingPeersMinimum? peers of the first
type are connected.

This allows relays to only go online if there are enough worker
peers connected behind them.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfdcore/config.c

    r1326 r1396  
    6060        fd_g_config->cnf_sctp_str = 30;
    6161        fd_g_config->cnf_thr_srv  = 5;
     62        fd_g_config->cnf_processing_peers_minimum = 0;
    6263        fd_g_config->cnf_dispthr  = 4;
    6364        fd_list_init(&fd_g_config->cnf_endpoints, NULL);
     
    102103        CHECK_MALLOC_DO( fd_dump_extend( FD_DUMP_STD_PARAMS, "  Number of clients thr .. : %d\n", fd_g_config->cnf_thr_srv), return NULL);
    103104        CHECK_MALLOC_DO( fd_dump_extend( FD_DUMP_STD_PARAMS, "  Number of app threads .. : %hu\n", fd_g_config->cnf_dispthr), return NULL);
     105        CHECK_MALLOC_DO( fd_dump_extend( FD_DUMP_STD_PARAMS, "  Minimal processing peers : %hu\n", fd_g_config->cnf_processing_peers_minimum), return NULL);
    104106        if (FD_IS_LIST_EMPTY(&fd_g_config->cnf_endpoints)) {
    105107                CHECK_MALLOC_DO( fd_dump_extend( FD_DUMP_STD_PARAMS, "  Local endpoints ........ : Default (use all available)\n"), return NULL);
Note: See TracChangeset for help on using the changeset viewer.