[tor-commits] [chutney/master] re-add not-connected to handle some failure cases

teor at torproject.org teor at torproject.org
Thu Jun 20 07:45:41 UTC 2019


commit 4c0e3f31df3167eea236e0f6c19fc80e757a906d
Author: Nick Mathewson <nickm at torproject.org>
Date:   Fri May 10 13:56:39 2019 -0400

    re-add not-connected to handle some failure cases
---
 lib/chutney/Traffic.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/chutney/Traffic.py b/lib/chutney/Traffic.py
index 167647b..425d08d 100755
--- a/lib/chutney/Traffic.py
+++ b/lib/chutney/Traffic.py
@@ -227,6 +227,7 @@ class CloseSourceProducer:
 class Source(asynchat.async_chat):
     """A data source, connecting to a TCP server, optionally over a
     SOCKS proxy, sending data."""
+    NOT_CONNECTED = 0
     CONNECTING = 1
     CONNECTING_THROUGH_PROXY = 2
     CONNECTED = 5





More information about the tor-commits mailing list