log_debug(DBG.HTTP_CTRL, 'req_ok ' + str(resp), idof=req)
rc = ResponseConsumer(req)
resp.deliverBody(rc)
- req_fin()
+ req_fin(req)
def req_err(req, err):
log_debug(DBG.HTTP_CTRL, 'req_err ' + str(err), idof=req)
print(err, file=sys.stderr)
- reactor.callLater(c.http_retry, req_fin)
+ reactor.callLater(c.http_retry, (lambda: req_fin(req)))
-def req_fin(*args):
+def req_fin(req):
global outstanding
outstanding -= 1
check_outbound()