give up on a reseed host after 90% errors

This commit is contained in:
zzz
2011-06-02 13:27:03 +00:00
parent 733d6db56e
commit a3ee593d0b

View File

@@ -344,6 +344,9 @@ public class Reseeder {
} catch (IOException e) { } catch (IOException e) {
errors++; errors++;
} }
// Give up on this one after 10 with only 0 or 1 good
if (errors >= 10 && fetched <= 1)
break;
} }
System.err.println("Reseed got " + fetched + " router infos from " + seedURL + " with " + errors + " errors"); System.err.println("Reseed got " + fetched + " router infos from " + seedURL + " with " + errors + " errors");