Commit 9b001ad9 authored by Fabio Vitello's avatar Fabio Vitello
Browse files

Merge remote-tracking branch 'origin/stable' into fix-issue-628

parents e24c0801 16a0fc3e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -22,12 +22,13 @@ class Connection(object):

    def __init__(self, address, timeout=2):
        self.address = address
        self.timeout = timeout

    def __enter__(self):
        self.s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
        connected = 1
        t0 = time.time()
        while time.time() - t0 < timeout:
        while time.time() - t0 < self.timeout:
            connected = self.s.connect_ex(self.address)
            if connected == 0:
                break
+1 −1
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@ list of modules:
"""
import customlogging
import ACSLog
import Connection
from Connection import Connection

#Some comments required here. The custom logger mechanism is not working in python. 
#do the way to separate the system logs to the ones do be shown to the user is to use different