diff options
| author | Alexander Barton <alex@barton.de> | 2018-11-28 14:13:09 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-28 14:13:09 +0100 |
| commit | 456eea6f1896528dad344ed2c254fd07bdc3a4b1 (patch) | |
| tree | 9472c73017f8afc7817f84519076a79c4eb43d02 /src/testsuite | |
| parent | 7690716e4fa8ac3ae9b513f4adba685f9e2c0e1f (diff) | |
| download | ngircd-456eea6f1896528dad344ed2c254fd07bdc3a4b1.tar.gz ngircd-456eea6f1896528dad344ed2c254fd07bdc3a4b1.zip | |
Implement new configuration option "MaxPenaltyTime" (#251)
This option configures the maximum penalty time increase in seconds, per penalty event. Set to -1 for no limit (the default), 0 to disable penalties altogether. ngIRCd doesn't use penalty increases higher than 2 seconds during normal operation, so values higher than 1 rarely make sense. Disabling (or reducing) penalties can greatly speed up "make check" runs for example, see below, but are mostly a debugging feature and normally not meant to be used on production systems! Some example timings running "make check" from my macOS workstation: - MaxPenaltyTime not set: 4:41,79s - "MaxPenaltyTime = 1": 3:14,71s - "MaxPenaltyTime = 0": 25,46s Closes #249.
Diffstat (limited to 'src/testsuite')
| -rw-r--r-- | src/testsuite/ngircd-test1.conf | 1 | ||||
| -rw-r--r-- | src/testsuite/ngircd-test2.conf | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/testsuite/ngircd-test1.conf b/src/testsuite/ngircd-test1.conf index 5cb7db7c..ab240a7c 100644 --- a/src/testsuite/ngircd-test1.conf +++ b/src/testsuite/ngircd-test1.conf @@ -12,6 +12,7 @@ [Limits] MaxConnectionsIP = 0 MaxJoins = 4 + MaxPenaltyTime = 1 [Options] OperCanUseMode = yes diff --git a/src/testsuite/ngircd-test2.conf b/src/testsuite/ngircd-test2.conf index 0d24c4a4..40d881d4 100644 --- a/src/testsuite/ngircd-test2.conf +++ b/src/testsuite/ngircd-test2.conf @@ -12,6 +12,7 @@ [Limits] MaxConnectionsIP = 0 MaxJoins = 4 + MaxPenaltyTime = 1 [Options] OperCanUseMode = yes |