The code contains some args->targets_len > 1 ifs that make no sense from the consistency viewpoint and have already tripped up the main user (cake-autorate). For example:
tsping -D -m -t -r 500 -s 0 127.0.0.1 127.0.0.2 # creates nicely half-second spaced pings to two targets
tsping -D -m -t -r 500 -s 0 127.0.0.1 127.0.0.2 127.0.0.3 # creates nicely half-second spaced pings to three targets
But, instead of creating nicely half-second spaced pings to one target, this creates an almost infinite-speed flood:
tsping -D -m -t -r 500 -s 0 127.0.0.1
Note that cake-autorate uses --sleep-time "0" --target-spacing "${ping_response_interval_ms}" as hard-coded tsping arguments, and will fall into this trap if the user sets no_pingers to 1.
The code contains some
args->targets_len > 1ifs that make no sense from the consistency viewpoint and have already tripped up the main user (cake-autorate). For example:But, instead of creating nicely half-second spaced pings to one target, this creates an almost infinite-speed flood:
Note that cake-autorate uses
--sleep-time "0" --target-spacing "${ping_response_interval_ms}"as hard-codedtspingarguments, and will fall into this trap if the user setsno_pingersto 1.