Update of /cvsroot/freenet/freenet/src/freenet
In directory sc8-pr-cvs1:/tmp/cvs-serv3827/src/freenet

Modified Files:
        Core.java Version.java 
Log Message:
6189:
Don't open new connections just to send QueryRejected messages (at least not on 
initial receipt of *Request), it's not worth it, there's only a 1 hop timeout on the 
other end. Thanks to sanity and lostlogic for the so-obvious-it's-invisible solution.
Implement support in logger for selective logging.
Reduce multiplier for bandwidth limits to 1.2.
Add commented-out code for Linux-specific load estimation based on /proc/stat.
Logging


Index: Core.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/Core.java,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -r1.41 -r1.42
--- Core.java   2 Sep 2003 21:37:31 -0000       1.41
+++ Core.java   10 Sep 2003 21:19:51 -0000      1.42
@@ -537,6 +537,15 @@
     }
     
     /**
+     * Returns an open connection to a node, or null if there aren't any
+     * free. Will ONLY take them from the cache, will not create new ones.
+     */
+    public final ConnectionHandler getConnection(Peer p)
+       throws CommunicationException {
+       return connections.findFreeConnection(p.getIdentity());
+    }
+    
+    /**
      * Returns an open connection to a node, either by making a new one
      * taking one from the cache.
      * @param peer     The peer to connect to.
@@ -550,8 +559,8 @@
         //    throw new CoreException("Core not begun");
         return connections.getConnection(this, p, timeout);
     }
-
-
+    
+    
     
     /**
      * Send the message using the appropriate protocol over a free or 

Index: Version.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/Version.java,v
retrieving revision 1.381
retrieving revision 1.382
diff -u -r1.381 -r1.382
--- Version.java        10 Sep 2003 15:29:14 -0000      1.381
+++ Version.java        10 Sep 2003 21:19:51 -0000      1.382
@@ -18,7 +18,7 @@
     public static String protocolVersion = "1.46";
     
     /** The build number of the current revision */
-    public static final int buildNumber = 6188;
+    public static final int buildNumber = 6189;
     // 6028: may 3; ARK retrieval fix
 
     public static final int ignoreBuildsAfter = 6500;

_______________________________________________
cvs mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to