1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Add wait after test error in omr-tracker

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-11-05 10:21:14 +01:00 committed by suyuan
parent f5b2e0f0e1
commit 1dbe35a996
7 changed files with 65 additions and 35 deletions

View file

@ -24,6 +24,7 @@ export OMR_TRACKER_DEVICE_GATEWAY
dscp=56 # set DSCP CS7 (56) in outgoing packets
initial_hosts="$OMR_TRACKER_HOSTS"
initial_timeout="$OMR_TRACKER_TIMEOUT"
wait_test=${OMR_TRACKER_WAIT_TEST:-0}
# set constants for rto updating
# we've changed the default values of the RFC to K=3 and beta=0.25 instead of K=4 and beta=0.125
@ -315,6 +316,7 @@ while true; do
#[ "$OMR_TRACKER_STATUS" = "ERROR" ] && _restart
#[ "$OMR_TRACKER_STATUS" != "$OMR_TRACKER_PREV_STATUS" ] && _post_tracking
_post_tracking
[ "$OMR_TRACKER_STATUS" = "ERROR" ] && sleep $wait_test
OMR_TRACKER_PREV_STATUS="$OMR_TRACKER_STATUS"
_restart