pex: improve handling of a longer list of PEX hosts
authorFelix Fietkau <nbd@nbd.name>
Fri, 16 Sep 2022 13:25:20 +0000 (15:25 +0200)
committerFelix Fietkau <nbd@nbd.name>
Fri, 16 Sep 2022 16:56:53 +0000 (18:56 +0200)
commit9144339ebe1fa3661b97d2dd68b7c1c4f3fb1e64
tree84279801abd79fb2d77acb3dd48c6fe92399b3b1
parent639cdcdf6edacbcd00db746727ea1ae881bef5c6
pex: improve handling of a longer list of PEX hosts

Instead of rotating and picking one every 5 seconds, pick one from the list
every 500ms, but enforce a minimum interval of 10 seconds per host between
pings

Signed-off-by: Felix Fietkau <nbd@nbd.name>
pex.c
pex.h