From 47191df1e45fed6fc6ec1c37f741a4a6a8588671 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 1 Apr 2017 21:13:37 +0100 Subject: [PATCH] wip, towards target --- client | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/client b/client index 6442154..c08b5fc 100755 --- a/client +++ b/client @@ -104,15 +104,11 @@ def req_err(req, err): reactor.callLater(c.http_retry, (lambda: req_fin(req))) def req_fin(req): + log_debug(DBG.HTTP_CTRL, 'req_fin', idof=req) global outstanding outstanding -= 1 check_outbound() -def asyncfailure(reason): - global outstanding - outstanding += 1 - req_err(None, reason) - def check_outbound(): global outstanding @@ -162,6 +158,8 @@ def check_outbound(): c.url, twisted.web.client.Headers(hh), producer) + + log_debug(DBG.HTTP_CTRL, 'request', idof=req, d=d) req.addTimeout(c.http_timeout, reactor) req.addCallback((lambda resp: req_ok(req, resp))) req.addErrback((lambda err: req_err(req, err))) -- 2.30.2