def createSocket(self):
        now = time.time()
        # Either retryTime is None, in which case this
        # is the first time back after a disconnect, or
        # we've waited long enough.
        if self.retryTime is None:
            attempt = 1
        else:
            attempt = (now >= self.retryTime)
        if attempt:
            try:
                self.sock = self.makeSocket()
                self.retryTime = None # next time, no delay before trying
            except:
                #Creation failed, so set the retry time and return.
                if self.retryTime is None:
                    self.retryPeriod = self.retryStart
                else:
                    self.retryPeriod = self.retryPeriod * self.retryFactor
                    if self.retryPeriod > self.retryMax:
                        self.retryPeriod = self.retryMax
                self.retryTime = now + self.retryPeriod
__eq__(other: PortSpec) -> boolean
dataset/ETHPy150Open babble/babble/include/jython/Lib/logging/handlers.py/SocketHandler.createSocket--crossover with--dataset/ETHPy150Open VisTrails/VisTrails/vistrails/core/vistrail/port_spec.py/PortSpec.__eq__