[or-cvs] [torflow/master 77/92] Clear url reserve after use

mikeperry at torproject.org mikeperry at torproject.org
Sat Aug 21 05:14:01 UTC 2010


Author: John M. Schanck <john at anomos.info>
Date: Sat, 14 Aug 2010 22:53:20 -0400
Subject: Clear url reserve after use
Commit: 3dc425a782e7ab31a59d5ce69ec340dcbd9b06dc

---
 NetworkScanners/ExitAuthority/soat.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/NetworkScanners/ExitAuthority/soat.py b/NetworkScanners/ExitAuthority/soat.py
index e7bc1fc..7008258 100755
--- a/NetworkScanners/ExitAuthority/soat.py
+++ b/NetworkScanners/ExitAuthority/soat.py
@@ -2046,6 +2046,8 @@ class SearchBasedTest:
 
   def get_search_urls_for_filetype(self, filetype):
     type_urls = set(self.url_reserve.get(filetype, []))
+    if type_urls: # Clear urls from the reserve
+      self.url_reserve[filetype] = []
     count = 0
     while len(type_urls) < self.results_per_type and count < max_search_retry:
       count += 1
-- 
1.7.1




More information about the tor-commits mailing list