Exemplo n.º 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)
Exemplo n.º 2
0
 def clientConnectionFailed(self, conector, reason):
     if isinstance(reason, ConnectionLost):
         log.error('Connection failed: {}'.format(reason))
         ReconnectingClientFactory.clientConnectionFailed(self, conector, reason)
Exemplo n.º 3
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)
Exemplo n.º 4
0
 def transferComplete(self, session, reason='OK'):
     if reason != 'OK':
         log.error(reason)
     self.transfer_sessions[session][1].stopListening()
     del self.transfer_sessions[session]
Exemplo n.º 5
0
 def sendError(self, message):
     log.error(message)
     self.sendResponse(Status.ERROR, message)
Exemplo n.º 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)