示例#1
0
    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
示例#2
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()
示例#3
0
文件: pb.py 项目: ewongbb/buildbot
 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()
示例#4
0
文件: pb.py 项目: ewongbb/buildbot
 def __init__(self, buildmaster_host, port, keepaliveInterval, maxDelay):
     AutoLoginPBFactory.__init__(self)
     self.keepaliveInterval = keepaliveInterval
示例#5
0
文件: pb.py 项目: ewongbb/buildbot
 def stopFactory(self):
     self.stopTimers()
     AutoLoginPBFactory.stopFactory(self)
示例#6
0
 def stopFactory(self):
     self.stopTimers()
     AutoLoginPBFactory.stopFactory(self)
示例#7
0
 def __init__(self, buildmaster_host, port, keepaliveInterval, maxDelay):
     AutoLoginPBFactory.__init__(self)
     self.keepaliveInterval = keepaliveInterval
     self.keepalive_lock = defer.DeferredLock()
示例#8
0
 def __init__(self, buildmaster_host, port, keepaliveInterval, maxDelay):
     AutoLoginPBFactory.__init__(self)
     self.keepaliveInterval = keepaliveInterval