Exemple #1
0
 def gotPerspective(self, perspective):
     ReconnectingPBClientFactory.gotPerspective(self, perspective)
     self.perspective = perspective
     try:
         perspective.broker.transport.setTcpKeepAlive(1)
     except:
         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 %d seconds" \
                 % self.keepaliveInterval)
         self.startTimers()
Exemple #2
0
 def gotPerspective(self, perspective):
     log.msg("Connected to %s:%s; slave is ready" % (self.buildmaster_host, self.port))
     ReconnectingPBClientFactory.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 %d seconds" % self.keepaliveInterval)
         self.startTimers()
Exemple #3
0
 def gotPerspective(self, perspective):
     log.msg("Connected to %s:%s; slave is ready" % (self.buildmaster_host, self.port))
     ReconnectingPBClientFactory.gotPerspective(self, perspective)
     self.perspective = perspective
     try:
         perspective.broker.transport.setTcpKeepAlive(1)
     except:
         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 %d seconds" \
                 % self.keepaliveInterval)
         self.startTimers()