Exemple #1
0
 def clientConnectionLost(self, conector, reason):
     if isinstance(reason, ConnectionLost):
         log.error('Connection lost: {}'.format(reason))
         ReconnectingClientFactory.clientConnectionLost(
             self, conector, reason)
     else:
         self.owner.transferComplete(self)
 def clientConnectionFailed(self, conector, reason):
     if isinstance(reason, ConnectionLost):
         log.error('Connection failed: {}'.format(reason))
         ReconnectingClientFactory.clientConnectionFailed(self, conector, reason)
 def clientConnectionLost(self, conector, reason):
     if isinstance(reason, ConnectionLost):
         log.error('Connection lost: {}'.format(reason))
         ReconnectingClientFactory.clientConnectionLost(self, conector, reason)
     else:
         self.owner.transferComplete(self)
 def transferComplete(self, session, reason='OK'):
     if reason != 'OK':
         log.error(reason)
     self.transfer_sessions[session][1].stopListening()
     del self.transfer_sessions[session]
 def sendError(self, message):
     log.error(message)
     self.sendResponse(Status.ERROR, message)
Exemple #6
0
 def clientConnectionFailed(self, conector, reason):
     if isinstance(reason, ConnectionLost):
         log.error('Connection failed: {}'.format(reason))
         ReconnectingClientFactory.clientConnectionFailed(
             self, conector, reason)
 def transferComplete(self, session, reason='OK'):
     if reason != 'OK':
         log.error(reason)
     self.transfer_sessions[session][1].stopListening()
     del self.transfer_sessions[session]
 def sendError(self, message):
     log.error(message)
     self.sendResponse(Status.ERROR, message)