self._log(DBG.HTTP_CTRL, 'connectionMade')
def connectionLost(self, reason):
- self._log(DBG.HTTP_CTRL, 'connectionLost')
- if isinstance(reason, twisted.internet.error.ConnectionDone):
+ self._log(DBG.HTTP_CTRL, 'connectionLost ' + str(reason))
+ if reason.check(twisted.web.client.ResponseDone):
try: self._ssd.flush()
except Exception as e:
self._asyncfailure(e)
self._asyncfailure(reason)
def _asyncfailure(self, reason):
+ self._log(DBG.HTTP_CTRL, '_asyncFailure ' + str(reason))
global outstanding
outstanding += 1
req_err(self._req, reason)
def req_ok(req, resp):
+ log_debug(DBG.HTTP_CTRL, 'req_ok ' + str(resp), idof=req)
rc = ResponseConsumer(req)
resp.deliverBody(rc)
req_fin()