def __init__(self):
self.pvserverPort = -1
self.pvserverPop = None # Popen object from subprocess module
- self.liveConnection = None
self.lastTrace = ""
"""
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: