Commit f183adef authored by Alan Marchiori's avatar Alan Marchiori

added retry logic on socket connection

parent d5e99000
......@@ -147,7 +147,12 @@ def main():'MAKING CONNECTION')
# open socket
skt = None
while skt == None:
skt = pakbus.open_socket(host, port, timeout)
if skt == None:
self.log.error("Failed to open socket, retry")
#if (len(pakbus_ids) != len(metric_ids)):
#logging.error("'pakbus_ids' and 'metric_ids' need to have the same number of elements")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment