Author: toad
Date: 2006-05-29 21:37:19 +0000 (Mon, 29 May 2006)
New Revision: 8939

Modified:
   trunk/freenet/src/freenet/node/Version.java
   trunk/freenet/src/freenet/node/useralerts/PeerManagerUserAlert.java
Log:
756: Be a little more generous with reasonable number of connections.

Modified: trunk/freenet/src/freenet/node/Version.java
===================================================================
--- trunk/freenet/src/freenet/node/Version.java 2006-05-29 21:29:30 UTC (rev 
8938)
+++ trunk/freenet/src/freenet/node/Version.java 2006-05-29 21:37:19 UTC (rev 
8939)
@@ -18,7 +18,7 @@
        public static final String protocolVersion = "1.0";

        /** The build number of the current revision */
-       private static final int buildNumber = 755;
+       private static final int buildNumber = 756;

        /** Oldest build of Fred we will talk to */
        private static final int lastGoodBuild = 754;

Modified: trunk/freenet/src/freenet/node/useralerts/PeerManagerUserAlert.java
===================================================================
--- trunk/freenet/src/freenet/node/useralerts/PeerManagerUserAlert.java 
2006-05-29 21:29:30 UTC (rev 8938)
+++ trunk/freenet/src/freenet/node/useralerts/PeerManagerUserAlert.java 
2006-05-29 21:37:19 UTC (rev 8939)
@@ -42,7 +42,7 @@
                                s += ". You could " + end + ", but remember 
that you are vulnerable to " +
                                "those you are directly connected to. (This is 
especially true in this early alpha of Freenet 0.7...)";
                }else if(peers-conns >= 20){ 
-                       s = "This node has too many disconnected peers : it 
will have a negative impact on your performances! Consider \"cleaning up\" your 
peer list.";
+                       s = "This node has too many disconnected peers : it 
will have a negative impact on your performance! Consider \"cleaning up\" your 
peer list.";
                }else if(conns == 0) {
                        s = "This node has not been able to connect to any 
other nodes so far; it will not be able to function normally. " +
                        "Hopefully some of your peers will connect soon; if 
not, try to get some more peers.";
@@ -54,7 +54,7 @@
                        s = "This node has only two connections. Performance 
and security will not be very good, and your node is not doing any routing for 
other nodes. " +
                        "Your node is embedded like a 'chain' in the network 
and does not contribute to the network's health." +
                        "Try to get at least 3 connected peers at any given 
time.";
-               }else if(conns >= 12) {
+               }else if(conns >= 30) {
                        s = "This node many connections. We don't encourage 
such a behaviour : Ubernodes are hurting the network.";
                } else throw new IllegalArgumentException("Not valid");
                return s;


Reply via email to