]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
Give more time to the pvserver to startup.
authorabn <adrien.bruneton@cea.fr>
Fri, 5 Sep 2014 13:16:04 +0000 (15:16 +0200)
committerabn <adrien.bruneton@cea.fr>
Fri, 5 Sep 2014 13:16:04 +0000 (15:16 +0200)
src/ENGINE/no_wrap/PARAVIS.py.in

index e236c6adc4b46ea7b938d1c0fdf789370deea4a9..2992b5be5c3543d0aae9bcebfb6943f07add2651 100644 (file)
@@ -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: