Пример #1
0
 def connectionLost(self, reason):
     NetstringReceiver.connectionLost(self, reason)
     for (_, timer) in self.pendingCalls.itervalues():
         if not timer.called:
             timer.cancel()
Пример #2
0
 def connectionLost(self, reason):
     NetstringReceiver.connectionLost(self, reason)
     for (_, timer) in six.itervalues(self.pendingCalls):
         if not timer.called:
             timer.cancel()
Пример #3
0
 def connectionLost(self, reason):
     NetstringReceiver.connectionLost(self, reason=reason)
     logger.info('connection lost to %s: %s' % (self.partner, str(reason)))
     self.router.removeConnection(self.partner)
Пример #4
0
 def connectionLost(self, reason):
     NetstringReceiver.connectionLost(self, reason=reason)
     logger.info('connection to client %s lost: %s' % (self.transport.hostname, str(reason)))
Пример #5
0
 def connectionLost(self, reason):
     """当连接失败时停止发送心跳包 """
     self.factory._paused = True
     log.error('connection lost: %s' % reason)
     NetstringReceiver.connectionLost(self,reason)
     self.stopHeartbeat()
Пример #6
0
 def connectionLost(self, reason):
     NetstringReceiver.connectionLost(self, reason=reason)
     logger.info('connection lost: %s' % str(reason))
Пример #7
0
 def connectionLost(self, reason=connectionDone):
     self.controller.disconnected()
     NetstringReceiver.connectionLost(self, reason=reason)