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

Modified Files:
        tcpConnection.java 
Log Message:
6191:
Correct counting of SendFinished's for RNFs - if it's a failure, it's unreachable, if 
it's a timeout, it's "restarted".
Bugfixes to profiling counts of ConnectionHandler occurrences
Pool ConnectionHandler accumulators too to avoid expensive allocations and object churn
Include size of tcpConnection and ConnectionHandler buffer pools in interesting 
objects dump
Logging


Index: tcpConnection.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/transport/tcpConnection.java,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -r1.41 -r1.42
--- tcpConnection.java  9 Sep 2003 22:12:04 -0000       1.41
+++ tcpConnection.java  11 Sep 2003 15:32:42 -0000      1.42
@@ -51,6 +51,12 @@
        return freenet.Core.streamBufferSize;
     }
     
+    public static int bufferPoolSize() {
+       synchronized(bufferPool) {
+           return bufferPool.size();
+       }
+    }
+    
     public static final HashMap socketConnectionMap = new HashMap();
     
     static synchronized public void setInputBandwidth(Bandwidth bw) {

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

Reply via email to