chiark / gitweb /
wip
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 22 Mar 2017 23:35:04 +0000 (23:35 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 22 Mar 2017 23:35:04 +0000 (23:35 +0000)
client

diff --git a/client b/client
index 39e04c56640e7eeac6a4c0ec01a0310a8f314bd1..48b635a9d2f62c19a2f2489f66d2a43a70bc0b54 100755 (executable)
--- a/client
+++ b/client
@@ -51,13 +51,14 @@ def outbound(packet, saddr, daddr):
   queue.append(packet)
   check_outbound()
 
   queue.append(packet)
   check_outbound()
 
-def req_ok(data)
+def req_ok(resp):
+  
 
 def req_err(err):
   print(err, >>sys.stderr)
 
 def req_err(err):
   print(err, >>sys.stderr)
-  outstanding--
 
 def req_fin(*args):  
 
 def req_fin(*args):  
+  outstanding--
 
 def check_outbound():
   while True:
 
 def check_outbound():
   while True:
@@ -83,7 +84,7 @@ def check_outbound():
 
     hh = { 'User-Agent': ['hippotat'],
            'Content-Type': ['multipart/form-data; boundary="b"'] }
 
     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, 
                         c.url,
                         twisted.web.client.Headers(hh))
     req.addTimeout(c.http_timeout,