def __init__(self, buildmaster_host, port, keepaliveInterval, maxDelay): AutoLoginPBFactory.__init__(self) self.keepaliveInterval = keepaliveInterval self.keepalive_lock = defer.DeferredLock() self._shutting_down = False # notified when shutdown is complete. self._shutdown_notifier = util.Notifier() self._active_keepalives = 0
def gotPerspective(self, perspective): log.msg("Connected to buildmaster; worker is ready") AutoLoginPBFactory.gotPerspective(self, perspective) self.perspective = perspective try: perspective.broker.transport.setTcpKeepAlive(1) except Exception: log.msg("unable to set SO_KEEPALIVE") if not self.keepaliveInterval: self.keepaliveInterval = 10 * 60 if self.keepaliveInterval: log.msg("sending application-level keepalives every {0} seconds". format(self.keepaliveInterval)) self.startTimers()
def gotPerspective(self, perspective): log.msg("Connected to buildmaster; worker is ready") AutoLoginPBFactory.gotPerspective(self, perspective) self.perspective = perspective try: perspective.broker.transport.setTcpKeepAlive(1) except Exception: log.msg("unable to set SO_KEEPALIVE") if not self.keepaliveInterval: self.keepaliveInterval = 10 * 60 self.activity() if self.keepaliveInterval: log.msg("sending application-level keepalives every {0} seconds".format( self.keepaliveInterval)) self.startTimers()
def __init__(self, buildmaster_host, port, keepaliveInterval, maxDelay): AutoLoginPBFactory.__init__(self) self.keepaliveInterval = keepaliveInterval
def stopFactory(self): self.stopTimers() AutoLoginPBFactory.stopFactory(self)
def stopFactory(self): self.stopTimers() AutoLoginPBFactory.stopFactory(self)
def __init__(self, buildmaster_host, port, keepaliveInterval, maxDelay): AutoLoginPBFactory.__init__(self) self.keepaliveInterval = keepaliveInterval self.keepalive_lock = defer.DeferredLock()
def __init__(self, buildmaster_host, port, keepaliveInterval, maxDelay): AutoLoginPBFactory.__init__(self) self.keepaliveInterval = keepaliveInterval