Detected with testcase
47838 that defines ciphers not recognized during SSL init. 47838
testcase makes the full test suite to hang.
|
From 5b843b891004da98997c9d7f328e21457b2e9679 Mon Sep 17 00:00:00 2001
From: root <root@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 5 Sep 2014 06:55:08 -0400
Subject: [PATCH] start/stop may hang indefinitely (like SSL init fails)
Description:
when rerun a start/stop command, check the timeout is not hit
---
lib389/tools.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lib389/tools.py b/lib389/tools.py
index f283882..c57a1b8 100644
--- a/lib389/tools.py
+++ b/lib389/tools.py
@@ -212,9 +212,13 @@ class DirSrvTools(object):
elif line.find("Initialization Failed") >= 0:
# sometimes the server fails to start - try again
rc = os.system(fullCmd)
+ pos = logfp.tell()
+ break
elif line.find("exiting.") >= 0:
# possible transient condition - try again
rc = os.system(fullCmd)
+ pos = logfp.tell()
+ break
pos = logfp.tell()
line = logfp.readline()
if line.find("PR_Bind") >= 0:
--
1.9.0
--
389-devel mailing list
389-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/389-devel