wip, towards target
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 1 Apr 2017 19:47:12 +0000 (20:47 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 1 Apr 2017 19:47:12 +0000 (20:47 +0100)
client

diff --git a/client b/client
index 467afd6..e4e5eae 100755 (executable)
--- a/client
+++ b/client
@@ -80,7 +80,12 @@ class ResponseConsumer(twisted.internet.protocol.Protocol):
       try: self._ssd.flush()
       except Exception as e: asyncfailure(e)
     else:
-      asyncfailure(reason)
+      self._asyncfailure(reason)
+
+  def _asyncfailure(self, reason):
+    global outstanding
+    outstanding += 1
+    req_err(reason)
 
 def req_ok(req, resp):
   rc = ResponseConsumer(req)