版本:nebula2-python 2.6.0
def ping(self, address):
"""check the server is ok
:param address: the server address want to connect
:return: True or False
"""
try:
conn = Connection()
if self._ssl_configs is None:
conn.open(address[0], address[1], 1000)
else:
conn.open_SSL(address[0], address[1], 1000, self._ssl_configs)
conn.close()
return True
except Exception as ex:
logging.warning('Connect {}:{} failed: {}'.format(address[0], address[1], ex))
return False
这个timeout的1000ms,为啥不能改呢?
我这边经常报错:
RuntimeError: The services status exception: [services: (‘0.0.0.0’, 32386), status: BAD]