def connectionLost(self, reason): NetstringReceiver.connectionLost(self, reason) for (_, timer) in self.pendingCalls.itervalues(): if not timer.called: timer.cancel()
def connectionLost(self, reason): NetstringReceiver.connectionLost(self, reason) for (_, timer) in six.itervalues(self.pendingCalls): if not timer.called: timer.cancel()
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)
def connectionLost(self, reason): NetstringReceiver.connectionLost(self, reason=reason) logger.info('connection to client %s lost: %s' % (self.transport.hostname, str(reason)))
def connectionLost(self, reason): """当连接失败时停止发送心跳包 """ self.factory._paused = True log.error('connection lost: %s' % reason) NetstringReceiver.connectionLost(self,reason) self.stopHeartbeat()
def connectionLost(self, reason): NetstringReceiver.connectionLost(self, reason=reason) logger.info('connection lost: %s' % str(reason))
def connectionLost(self, reason=connectionDone): self.controller.disconnected() NetstringReceiver.connectionLost(self, reason=reason)