[or-cvs] r21242: {torctl} Attempt to fix/workaround odd hang bug when we run out of ex (torctl/trunk/python/TorCtl)
mikeperry at seul.org
mikeperry at seul.org
Thu Dec 17 09:54:07 UTC 2009
Author: mikeperry
Date: 2009-12-17 04:54:07 -0500 (Thu, 17 Dec 2009)
New Revision: 21242
Modified:
torctl/trunk/python/TorCtl/ScanSupport.py
Log:
Attempt to fix/workaround odd hang bug when we run out of exits.
Modified: torctl/trunk/python/TorCtl/ScanSupport.py
===================================================================
--- torctl/trunk/python/TorCtl/ScanSupport.py 2009-12-17 09:53:34 UTC (rev 21241)
+++ torctl/trunk/python/TorCtl/ScanSupport.py 2009-12-17 09:54:07 UTC (rev 21242)
@@ -74,6 +74,9 @@
def notlambda(this):
cond.acquire()
this.new_nym = True
+ if this.selmgr.bad_restrictions:
+ plog("NOTICE", "Clearing bad restrictions with reconfigure..")
+ this.selmgr.reconfigure(this.current_consensus())
lines = this.c.sendAndRecv("SIGNAL CLEARDNSCACHE\r\n")
for _,msg,more in lines:
plog("DEBUG", msg)
More information about the tor-commits
mailing list