Author: toad
Date: 2007-09-25 15:22:39 +0000 (Tue, 25 Sep 2007)
New Revision: 15294

Modified:
   trunk/freenet/src/freenet/node/PacketSender.java
Log:
I was wrong...

Modified: trunk/freenet/src/freenet/node/PacketSender.java
===================================================================
--- trunk/freenet/src/freenet/node/PacketSender.java    2007-09-25 15:19:52 UTC 
(rev 15293)
+++ trunk/freenet/src/freenet/node/PacketSender.java    2007-09-25 15:22:39 UTC 
(rev 15294)
@@ -37,16 +37,13 @@
        static final int MIN_CONNECTIONS_TRY_OLD_OPENNET_PEERS = 5;

        /** We send connect attempts to old-opennet-peers no more than once 
every
-        * this many milliseconds, if we have no connections at all. */
+        * this many milliseconds. */
        static final int MIN_OLD_OPENNET_CONNECT_DELAY_NO_CONNS = 10*1000;

        /** We send connect attempts to old-opennet-peers no more than once 
every
         * this many milliseconds. */
        static final int MIN_OLD_OPENNET_CONNECT_DELAY = 60*1000;

-       /** Wait this long before trying any old-opennet-peers */
-       static final int TRY_OLD_OPENNET_PEERS_STARTUP_DELAY = 30*1000;
-       
     final LinkedList resendPackets;
     /** ~= Ticker :) */
     private final TreeMap timedJobsByTime;
@@ -334,7 +331,7 @@
                if(now - timeLastSentOldOpennetConnectAttempt > minDelay &&
                                connCount <= 
MIN_CONNECTIONS_TRY_OLD_OPENNET_PEERS &&
                                om.countOldOpennetPeers() > 0 &&
-                               now - node.startupTime > 
TRY_OLD_OPENNET_PEERS_STARTUP_DELAY) {
+                               now - node.startupTime > 
OpennetManager.DROP_STARTUP_DELAY) {
                PeerNode pn = om.randomOldOpennetNode();
                if(pn != null) {
                        pn.getOutgoingMangler().sendHandshake(pn);


Reply via email to