]> git.ipfire.org Git - thirdparty/chrony.git/commit
clientlog: add support for KoD rate limiting
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 2 Apr 2024 13:05:19 +0000 (15:05 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 2 Apr 2024 13:23:26 +0000 (15:23 +0200)
commitaac898343ee52e77f97fe73f0cda4d73ec926814
tree86af1ee7904ac8a1ab4991909ae424ce78a717bd
parentc8c7f518b17402fd5a589a86f1b4374cc2a7e408
clientlog: add support for KoD rate limiting

Add a third return value to CLG_LimitServiceRate() to indicate the
server should send a response requesting the client to reduce its
polling rate. It randomly selects from a fraction (configurable to 1/2,
1/4, 1/8, 1/16, or disabled) of responses which would be dropped
(after selecting responses for the leak option).
clientlog.c
clientlog.h
test/unit/clientlog.c