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:
parent
f5b2e0f0e1
commit
1dbe35a996
7 changed files with 65 additions and 35 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue