You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by da...@apache.org on 2017/06/20 17:17:09 UTC

[1/2] incubator-trafficcontrol git commit: Fix parent.config generation so that the 'unavailable_server_retry_responses' config parameter is used only if there is a defined list of response codes. Otherwise, this parameter is defaulted.

Repository: incubator-trafficcontrol
Updated Branches:
  refs/heads/master 89b79ab1b -> c61b15da5


Fix parent.config generation so that the 'unavailable_server_retry_responses' config
parameter is used only if there is a defined list of response codes.  Otherwise,
this parameter is defaulted.


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/b7017237
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/b7017237
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/b7017237

Branch: refs/heads/master
Commit: b70172372dc4aad6f2ff75008358080b13808c35
Parents: 89b79ab
Author: John J. Rushford <jr...@apache.org>
Authored: Wed May 31 09:59:20 2017 -0600
Committer: Dan Kirkwood <da...@gmail.com>
Committed: Tue Jun 20 11:10:13 2017 -0600

----------------------------------------------------------------------
 traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm | 6 +++++-
 traffic_ops/app/lib/UI/ConfigFiles.pm                  | 6 +++++-
 2 files changed, 10 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/b7017237/traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm
----------------------------------------------------------------------
diff --git a/traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm b/traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm
index 1e581c6..8b6662c 100644
--- a/traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm
+++ b/traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm
@@ -2020,7 +2020,11 @@ sub parent_dot_config {
 				$text .= "$parents round_robin=$mso_algorithm qstring=$parent_qstring go_direct=false parent_is_proxy=false";
 
 				if ( $ats_major_version >= 6 && $parent_retry ne "" ) {
-					$text .= " parent_retry=$parent_retry unavailable_server_retry_responses=$unavailable_server_retry_responses";
+					if ( $unavailable_server_retry_responses ne "") {
+						$text .= " parent_retry=$parent_retry unavailable_server_retry_responses=$unavailable_server_retry_responses";
+					} else {
+						$text .= " parent_retry=$parent_retry";
+					}
 					$text .= " max_simple_retries=$max_simple_retries max_unavailable_server_retries=$max_unavailable_server_retries";
 				}
 				$text .= "\n";

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/b7017237/traffic_ops/app/lib/UI/ConfigFiles.pm
----------------------------------------------------------------------
diff --git a/traffic_ops/app/lib/UI/ConfigFiles.pm b/traffic_ops/app/lib/UI/ConfigFiles.pm
index 49ca73c..03edb77 100644
--- a/traffic_ops/app/lib/UI/ConfigFiles.pm
+++ b/traffic_ops/app/lib/UI/ConfigFiles.pm
@@ -1183,7 +1183,11 @@ sub parent_dot_config {
 				$text .= "$parents round_robin=$mso_algorithm qstring=$parent_qstring go_direct=false parent_is_proxy=false";
 
 				if ( $ats_major_version >= 6 && $parent_retry ne "" ) {
-					$text .= " parent_retry=$parent_retry unavailable_server_retry_responses=$unavailable_server_retry_responses";
+					if ( $unavailable_server_retry_responses ne "") {
+						$text .= " parent_retry=$parent_retry unavailable_server_retry_responses=$unavailable_server_retry_responses";
+					} else {
+						$text .= " parent_retry=$parent_retry";
+					}
 					$text .= " max_simple_retries=$max_simple_retries max_unavailable_server_retries=$max_unavailable_server_retries";
 				}
 				$text .= "\n";


[2/2] incubator-trafficcontrol git commit: This closes #628.

Posted by da...@apache.org.
This closes #628.


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/c61b15da
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/c61b15da
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/c61b15da

Branch: refs/heads/master
Commit: c61b15da5764c2674f69fddb7d37242d68935351
Parents: b701723
Author: Dan Kirkwood <da...@gmail.com>
Authored: Tue Jun 20 11:13:08 2017 -0600
Committer: Dan Kirkwood <da...@gmail.com>
Committed: Tue Jun 20 11:13:08 2017 -0600

----------------------------------------------------------------------

----------------------------------------------------------------------