]> arthur.ath.cx Git - ngircd-alex.git/commit
Implement new configuration option "MaxPenaltyTime" bug249_MaxPenaltyTime
authorAlexander Barton <alex@barton.de>
Sun, 4 Nov 2018 13:26:00 +0000 (14:26 +0100)
committerAlexander Barton <alex@barton.de>
Sun, 4 Nov 2018 13:26:00 +0000 (14:26 +0100)
commitc8dc55ba7208d331e570222adde45af10a4c5c63
tree16b9f972975abe4253755429f980beec35780a08
parent7f2d21f96242af14d7ef4e0af0c6121373f20792
Implement new configuration option "MaxPenaltyTime"

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.
doc/sample-ngircd.conf.tmpl
man/ngircd.conf.5.tmpl
src/ngircd/conf.c
src/ngircd/conf.h
src/ngircd/conn-func.c
src/testsuite/ngircd-test1.conf
src/testsuite/ngircd-test2.conf