Author: toad
Date: 2008-05-07 14:45:01 +0000 (Wed, 07 May 2008)
New Revision: 19827
Modified:
trunk/freenet/src/freenet/node/Announcer.java
Log:
Connect to 15 seednodes, announce to 5.
Modified: trunk/freenet/src/freenet/node/Announcer.java
===================================================================
--- trunk/freenet/src/freenet/node/Announcer.java 2008-05-07 14:33:48 UTC
(rev 19826)
+++ trunk/freenet/src/freenet/node/Announcer.java 2008-05-07 14:45:01 UTC
(rev 19827)
@@ -42,8 +42,8 @@
private static final int STATUS_CONNECTING_SEEDNODES = 1;
private static final int STATUS_NO_SEEDNODES = -1;
private int runningAnnouncements;
- /** We want to announce to 4 different seednodes. */
- private static final int WANT_ANNOUNCEMENTS = 4;
+ /** We want to announce to 5 different seednodes. */
+ private static final int WANT_ANNOUNCEMENTS = 5;
private int sentAnnouncements;
private long startTime;
private long timeAddedSeeds;
@@ -55,7 +55,7 @@
/** IPs of nodes we have announced to. Maybe this should be
first-two-bytes, but I'm not sure how to do that with IPv6. */
private final HashSet announcedToIPs;
/** How many nodes to connect to at once? */
- static final int CONNECT_AT_ONCE = 10;
+ static final int CONNECT_AT_ONCE = 15;
/** Do not announce if there are more than this many opennet peers
connected */
private static final int MIN_OPENNET_CONNECTED_PEERS = 10;
private static final long NOT_ALL_CONNECTED_DELAY = 60*1000;