client/rhel/rhn-client-tools/src/up2date_client/rpcServer.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 116344e5a23cc1fe7da54f3fb07607de03b1b803
Author: Milan Zazrivec <mzazrivec(a)redhat.com>
Date: Thu Nov 26 21:11:54 2009 +0100
541262 - revised networkRetries logic
* treat all values less or equal to zero as: make exactly one connection
attempt
* treat all values greater than zero as: make exactly that many connection
attempts
According to this specifying one or zero will have the same effect
(i.e. exactly one connection attempt).
diff --git a/client/rhel/rhn-client-tools/src/up2date_client/rpcServer.py
b/client/rhel/rhn-client-tools/src/up2date_client/rpcServer.py
index 1a810d9..6e0794e 100644
--- a/client/rhel/rhn-client-tools/src/up2date_client/rpcServer.py
+++ b/client/rhel/rhn-client-tools/src/up2date_client/rpcServer.py
@@ -191,10 +191,10 @@ def doCall(method, *args, **kwargs):
ret = None
attempt_count = 1
- if cfg["networkRetries"]:
- attempts = cfg["networkRetries"] or 5
+ if cfg["networkRetries"] <= 0:
+ attempts = 1
else:
- attempts = 0
+ attempts = cfg["networkRetries"]
while 1:
failure = 0
Show replies by date