chiark
/
gitweb
/
~ian
/
hippotat.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15407d8
)
wip, towards target
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 1 Apr 2017 20:11:08 +0000
(21:11 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 1 Apr 2017 20:11:08 +0000
(21:11 +0100)
client
patch
|
blob
|
history
diff --git
a/client
b/client
index afc792d3fd25ce13910ca455c6c4b178778b6674..644215456616fb2f4932af73dcf7ff44d09898a0 100755
(executable)
--- a/
client
+++ b/
client
@@
-96,14
+96,14
@@
def req_ok(req, resp):
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()