From 5637d2b015c1bf3545fc6bba6ad7f1c060162bd2 Mon Sep 17 00:00:00 2001 From: saxon Date: Tue, 22 Jan 2019 15:53:41 +1030 Subject: [PATCH 1/2] revid-cli: added sendRetry flag so that we can have the option to either keep sending on failure, or just drop data. --- cmd/revid-cli/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/revid-cli/main.go b/cmd/revid-cli/main.go index 7e375992..01429672 100644 --- a/cmd/revid-cli/main.go +++ b/cmd/revid-cli/main.go @@ -124,6 +124,7 @@ func handleFlags() revid.Config { rtpAddrPtr = flag.String("RtpAddr", "", "Rtp destination address: : (port is generally 6970-6999)") logPathPtr = flag.String("LogPath", defaultLogPath, "The log path") configFilePtr = flag.String("ConfigFile", "", "NetSender config file") + sendRetryPtr = flag.Bool("send-retry", false, "If true, we retry send on a failure, otherwise drop the data.") ) flag.Parse() @@ -254,6 +255,7 @@ func handleFlags() revid.Config { cfg.Quantization = *quantizationPtr cfg.IntraRefreshPeriod = *intraRefreshPeriodPtr cfg.RtpAddress = *rtpAddrPtr + cfg.SendRetry = *sendRetryPtr return cfg } From 5090056972a242fa4a80c4fdb6f0acc34700cd5e Mon Sep 17 00:00:00 2001 From: saxon Date: Fri, 8 Feb 2019 18:19:44 +1030 Subject: [PATCH 2/2] cmd/revid-cli: send-retry cmd line flag is now retry --- cmd/revid-cli/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/revid-cli/main.go b/cmd/revid-cli/main.go index 577896a8..6ca6ba68 100644 --- a/cmd/revid-cli/main.go +++ b/cmd/revid-cli/main.go @@ -137,7 +137,7 @@ func handleFlags() revid.Config { rtpAddrPtr = flag.String("RtpAddr", "", "Rtp destination address: : (port is generally 6970-6999)") logPathPtr = flag.String("LogPath", defaultLogPath, "The log path") configFilePtr = flag.String("ConfigFile", "", "NetSender config file") - sendRetryPtr = flag.Bool("send-retry", false, "If true, we retry send on a failure, otherwise drop the data.") + sendRetryPtr = flag.Bool("retry", false, "Specify whether a failed send should be retried.") ) var outputs flagStrings