BIND 10 trac1175, updated. 3f70cdcd8eb249f181ef476efc6ba318222761e7 [1175] attempt to create a cc session maximum 3 times
BIND 10 source code commits
bind10-changes at lists.isc.org
Thu Sep 8 09:56:24 UTC 2011
The branch, trac1175 has been updated
via 3f70cdcd8eb249f181ef476efc6ba318222761e7 (commit)
from 31e04a17289ee2687466591b9df964a9659a375e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 3f70cdcd8eb249f181ef476efc6ba318222761e7
Author: Naoki Kambe <kambe at jprs.co.jp>
Date: Thu Sep 8 18:58:03 2011 +0900
[1175] attempt to create a cc session maximum 3 times
-----------------------------------------------------------------------
Summary of changes:
src/bin/stats/tests/test_utils.py | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/bin/stats/tests/test_utils.py b/src/bin/stats/tests/test_utils.py
index 20b959e..15af1f8 100644
--- a/src/bin/stats/tests/test_utils.py
+++ b/src/bin/stats/tests/test_utils.py
@@ -331,7 +331,17 @@ class BaseModules:
self.msgq = ThreadingServerManager(MockMsgq)
self.msgq.run()
# Check whether msgq is ready. A SessionTimeout is raised here if not.
- isc.cc.session.Session().close()
+ n = 0
+ while True:
+ try:
+ isc.cc.session.Session().close()
+ except isc.cc.session.SessionTimeout:
+ # retrying until 3 times
+ if n >2: raise
+ else:
+ n = n + 1
+ continue
+ else: break
# MockCfgmgr
self.cfgmgr = ThreadingServerManager(MockCfgmgr)
self.cfgmgr.run()
More information about the bind10-changes
mailing list