Mercurial > hg > freeDiameter
diff libfdcore/fdd.l @ 1396:188c82b6690b
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.
author | Thomas Klausner <tk@giga.or.at> |
---|---|
date | Fri, 15 Nov 2019 11:38:30 +0100 |
parents | f17a56536790 |
children | 239ba25870d8 |
line wrap: on
line diff
--- a/libfdcore/fdd.l Fri Nov 15 11:33:48 2019 +0100 +++ b/libfdcore/fdd.l Fri Nov 15 11:38:30 2019 +0100 @@ -256,6 +256,8 @@ (?i:"AppServThreads") { return APPSERVTHREADS; } (?i:"ListenOn") { return LISTENON; } (?i:"ThreadsPerServer") { return THRPERSRV; } +(?i:"ProcessingPeersPattern") { return PROCESSINGPEERSPATTERN; } +(?i:"ProcessingPeersMinimum") { return PROCESSINGPEERSMINIMUM; } (?i:"TcTimer") { return TCTIMER; } (?i:"TwTimer") { return TWTIMER; } (?i:"NoRelay") { return NORELAY; }