X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=hippotat.git;a=blobdiff_plain;f=hippotat;h=16256281f505aa9a4e5c4bef07559ce39f65c04f;hp=248538e7c422e1c1b502ddcadf5d40e24164c630;hb=a14782d3bb7fe3e65f19e45d913d2e5f5d8662bb;hpb=7ec61cc0d1b67ffaf5e5e68a43b8aa5a1dfeb43a diff --git a/hippotat b/hippotat index 248538e..1625628 100755 --- a/hippotat +++ b/hippotat @@ -150,6 +150,7 @@ class Client(): # later, by ResponsConsumer or ErrorResponsConsumer try: cl.log(DBG.HTTP_CTRL, 'req_err ' + str(err), idof=req) + cl.running_reported = False if isinstance(err, twisted.python.failure.Failure): err = err.getTraceback() print('%s[%#x] %s' % (cl.desc, id(req), err.strip('\n').replace('\n',' / ')), @@ -185,13 +186,15 @@ class Client(): d = mime_translate(d) + token = authtoken_make(cl.c.secret) + crlf = b'\r\n' lf = b'\n' mime = (b'--b' + crlf + b'Content-Type: text/plain; charset="utf-8"' + crlf + b'Content-Disposition: form-data; name="m"' + crlf + crlf + str(cl.c.client) .encode('ascii') + crlf + - cl.c.password + crlf + + token + crlf + str(cl.c.target_requests_outstanding) .encode('ascii') + crlf + str(cl.c.http_timeout) .encode('ascii') + crlf +