queue.append(packet)
check_outbound()
-def req_ok(data)
+def req_ok(resp):
+
def req_err(err):
print(err, >>sys.stderr)
- outstanding--
def req_fin(*args):
+ outstanding--
def check_outbound():
while True:
hh = { 'User-Agent': ['hippotat'],
'Content-Type': ['multipart/form-data; boundary="b"'] }
- req = agent.request('POST',
+ req = agent.request(b'POST',
c.url,
twisted.web.client.Headers(hh))
req.addTimeout(c.http_timeout,