Update of /cvsroot/freenet/freenet/src/freenet/transport
In directory sc8-pr-cvs1:/tmp/cvs-serv2254/src/freenet/transport
Modified Files:
AbstractSelectorLoop.java
Log Message:
added new diag hoping to catch loops
Index: AbstractSelectorLoop.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/transport/AbstractSelectorLoop.java,v
retrieving revision 1.73
retrieving revision 1.74
diff -u -r1.73 -r1.74
--- AbstractSelectorLoop.java 5 Sep 2003 16:08:51 -0000 1.73
+++ AbstractSelectorLoop.java 6 Sep 2003 12:21:06 -0000 1.74
@@ -162,12 +162,14 @@
public Connection conn;
public Object attachment;
public SocketChannel sc;
+ public long timeStamp; //debugging. Can be removed eventually
public ClosePair(Connection conn, Object attachment,
SocketChannel sc) {
this.conn = conn;
this.attachment = attachment;
this.sc = sc;
+ timeStamp = System.currentTimeMillis();
}
public String toString() {
@@ -757,6 +759,9 @@
} catch (Throwable t) {
Core.logger.log(this,
"Caught "+t+" closing "+
c, t, Logger.ERROR);
+ } finally {
+
Core.diagnostics.occurrenceContinuous("closePairLifetime",
+
System.currentTimeMillis()-current.timeStamp);
}
//notify the callback
if (current.attachment !=null){
_______________________________________________
cvs mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/cvs