Beispiel #1
0
 def ebRequestWriting(err):
     if self._state == 'TRANSMITTING':
         self._state = 'GENERATION_FAILED'
         self.transport.loseConnection()
         self._finishedRequest.errback(
             Failure(RequestGenerationFailed([err])))
     else:
         log.err(err, "foo")
Beispiel #2
0
 def ebRequestWriting(err):
     if self._state == 'TRANSMITTING':
         self._state = 'GENERATION_FAILED'
         self.transport.loseConnection()
         self._finishedRequest.errback(
             failure.Failure(RequestGenerationFailed([err])))
     else:
         log.err(err, 'Error writing request, but not in valid state '
                      'to finalize request: %s' % self._state)