[or-cvs] r18537: {torctl} If we don't give a reason on CLOSESTREAM, it ends in SUCCESS (torctl/trunk/python/TorCtl)

mikeperry at seul.org mikeperry at seul.org
Sat Feb 14 01:02:46 UTC 2009


Author: mikeperry
Date: 2009-02-13 20:02:45 -0500 (Fri, 13 Feb 2009)
New Revision: 18537

Modified:
   torctl/trunk/python/TorCtl/PathSupport.py
Log:

If we don't give a reason on CLOSESTREAM, it ends in SUCCESS, we need a
FAILED. Hopefully this will do it.



Modified: torctl/trunk/python/TorCtl/PathSupport.py
===================================================================
--- torctl/trunk/python/TorCtl/PathSupport.py	2009-02-14 01:00:44 UTC (rev 18536)
+++ torctl/trunk/python/TorCtl/PathSupport.py	2009-02-14 01:02:45 UTC (rev 18537)
@@ -1218,7 +1218,7 @@
         self.last_exit = None
         # Kill this stream
         plog("NOTICE", "Closing stream "+str(stream.strm_id))
-        self.c.close_stream(stream.strm_id)
+        self.c.close_stream(stream.strm_id, "4") # END_STREAM_REASON_EXITPOLICY
         return
       while circ == None:
         try:



More information about the tor-commits mailing list