Navigation


Changeset 1396:188c82b6690b in freeDiameter for include


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
  • include/freeDiameter/libfdcore.h

    r1329 r1396  
    4545#include <gnutls/gnutls.h>
    4646#include <gnutls/x509.h>
     47#include <regex.h>
    4748
    4849/* GNUTLS version */
     
    133134        struct fd_list   cnf_endpoints; /* the local endpoints to bind the server to. list of struct fd_endpoint. default is empty (bind all). After servers are started, this is the actual list of endpoints including port information. */
    134135        int              cnf_thr_srv;   /* Number of threads per servers handling the connection state machines */
     136        int              cnf_processing_peers_minimum;  /* Number of processing peers that must be connected before other peers may connect */
     137        regex_t          cnf_processing_peers_pattern_regex;    /* Regex pattern for identifying processing peers */
    135138        struct fd_list   cnf_apps;      /* Applications locally supported (except relay, see flags). Use fd_disp_app_support to add one. list of struct fd_app. */
    136139        uint16_t         cnf_dispthr;   /* Number of dispatch threads to create */
Note: See TracChangeset for help on using the changeset viewer.