def retry(self, connector=None): ReconnectingPBClientFactory.retry(self, connector=connector) log.msg("Retry attempt {}/{}".format( self.retries, self.maxRetries if self.maxRetries is not None else "inf")) if self.maxRetries is not None and self.retries > self.maxRetries and self.maxRetriesCallback: log.msg("Giving up retrying!") self.maxRetriesCallback()
def retry(self, connector=None): ReconnectingPBClientFactory.retry(self, connector=connector) log.msg("Retry attempt {}/{}".format( self.retries, self.maxRetries if self.maxRetries is not None else "inf")) if self.maxRetries is not None and self.retries > self.maxRetries and self.maxRetriesCallback: log.msg("Giving up retrying!") self.maxRetriesCallback()
def retry(self, connector=None): ReconnectingPBClientFactory.retry(self, connector=connector) if self.retries > self.maxRetries and self.maxRetriesCallback: self.maxRetriesCallback()