[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r21241: {torflow} Attempt to fix/workaround odd hang bug when we run out of ex (torflow/branches/stable/NetworkScanners/BwAuthority)



Author: mikeperry
Date: 2009-12-17 04:53:34 -0500 (Thu, 17 Dec 2009)
New Revision: 21241

Modified:
   torflow/branches/stable/NetworkScanners/BwAuthority/bwauthority.py
Log:

Attempt to fix/workaround odd hang bug when we run out of exits.



Modified: torflow/branches/stable/NetworkScanners/BwAuthority/bwauthority.py
===================================================================
--- torflow/branches/stable/NetworkScanners/BwAuthority/bwauthority.py	2009-12-17 03:07:43 UTC (rev 21240)
+++ torflow/branches/stable/NetworkScanners/BwAuthority/bwauthority.py	2009-12-17 09:53:34 UTC (rev 21241)
@@ -231,6 +231,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)