From: abn Date: Fri, 5 Sep 2014 13:16:04 +0000 (+0200) Subject: Give more time to the pvserver to startup. X-Git-Tag: V7_5_0b1~27^2~15 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ad6e045970a90f251e67dfeea07127548723b13f;p=modules%2Fparavis.git Give more time to the pvserver to startup. --- diff --git a/src/ENGINE/no_wrap/PARAVIS.py.in b/src/ENGINE/no_wrap/PARAVIS.py.in index e236c6ad..2992b5be 100644 --- a/src/ENGINE/no_wrap/PARAVIS.py.in +++ b/src/ENGINE/no_wrap/PARAVIS.py.in @@ -48,7 +48,6 @@ class PARAVIS_Impl: def __init__(self): self.pvserverPort = -1 self.pvserverPop = None # Popen object from subprocess module - self.liveConnection = None self.lastTrace = "" """ @@ -92,7 +91,8 @@ class PARAVIS_Impl: if port <= 0: port = self.__getFreePort(self.PVSERVER_DEFAULT_PORT) self.pvserverPop = subp.Popen([pvServerPath, "--multi-clients", "--server-port=%d" % port]) - sleep(1) + sleep(3) # Give some time to the server to start up to avoid + # ugly messages on the client side saying that it cannot connect # Is PID still alive? If yes, consider that the launch was successful self.pvserverPop.poll() if self.pvserverPop.returncode is None: