2004-10-01 jrandom
* Handle partial reseeds, caused by seeds going away before the download completes (thanks Sugadude!)
This commit is contained in:
@ -145,11 +145,16 @@ public class ConfigNetHandler extends FormHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int fetched = 0;
|
int fetched = 0;
|
||||||
|
int errors = 0;
|
||||||
for (Iterator iter = urls.iterator(); iter.hasNext(); ) {
|
for (Iterator iter = urls.iterator(); iter.hasNext(); ) {
|
||||||
fetchSeed(seedURL, (String)iter.next());
|
try {
|
||||||
fetched++;
|
fetchSeed(seedURL, (String)iter.next());
|
||||||
|
fetched++;
|
||||||
|
} catch (Exception e) {
|
||||||
|
errors++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
addFormNotice("Reseeded with " + fetched + " peers");
|
addFormNotice("Reseeded with " + fetched + " peers (and " + errors + " failures)");
|
||||||
} catch (Throwable t) {
|
} catch (Throwable t) {
|
||||||
_context.logManager().getLog(ConfigNetHandler.class).error("Error reseeding", t);
|
_context.logManager().getLog(ConfigNetHandler.class).error("Error reseeding", t);
|
||||||
addFormError("Error reseeding (RESEED_EXCEPTION)");
|
addFormError("Error reseeding (RESEED_EXCEPTION)");
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
$Id: history.txt,v 1.25 2004/10/01 04:39:14 jrandom Exp $
|
$Id: history.txt,v 1.26 2004/10/01 06:49:03 jrandom Exp $
|
||||||
|
|
||||||
|
2004-10-01 jrandom
|
||||||
|
* Handle partial reseeds, caused by seeds going away before the download
|
||||||
|
completes (thanks Sugadude!)
|
||||||
|
|
||||||
2004-10-01 jrandom
|
2004-10-01 jrandom
|
||||||
* Explicitly refuse IPv6 addresses, since only some peers support
|
* Explicitly refuse IPv6 addresses, since only some peers support
|
||||||
|
@ -15,9 +15,9 @@ import net.i2p.CoreVersion;
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class RouterVersion {
|
public class RouterVersion {
|
||||||
public final static String ID = "$Revision: 1.35 $ $Date: 2004/10/01 04:39:14 $";
|
public final static String ID = "$Revision: 1.36 $ $Date: 2004/10/01 06:49:02 $";
|
||||||
public final static String VERSION = "0.4.1";
|
public final static String VERSION = "0.4.1";
|
||||||
public final static long BUILD = 2;
|
public final static long BUILD = 3;
|
||||||
public static void main(String args[]) {
|
public static void main(String args[]) {
|
||||||
System.out.println("I2P Router version: " + VERSION);
|
System.out.println("I2P Router version: " + VERSION);
|
||||||
System.out.println("Router ID: " + RouterVersion.ID);
|
System.out.println("Router ID: " + RouterVersion.ID);
|
||||||
|
Reference in New Issue
Block a user