Update of /cvsroot/freenet/freenet/src/freenet/node/states/data
In directory sc8-pr-cvs1:/tmp/cvs-serv29322/src/freenet/node/states/data
Modified Files:
ReceiveData.java
Log Message:
6223: major bugfixes, from local testing. also merge the Yarrow patch. also lots of
logging.
Index: ReceiveData.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/node/states/data/ReceiveData.java,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- ReceiveData.java 18 Sep 2003 17:48:11 -0000 1.22
+++ ReceiveData.java 7 Oct 2003 20:03:39 -0000 1.23
@@ -109,6 +109,9 @@
while (moved < length) {
inWrite = false;
int m = data.read(buffer, 0, (int) Math.min(length - moved,
buffer.length));
+ if(logDEBUG)
+ n.logger.log(this, "Read "+m+" bytes ("+this+")",
+ Logger.DEBUG);
if (m < 0) {
throw new IOException("Could not read all the expected "+
"data, read "+moved+" of "+length+
@@ -125,6 +128,9 @@
if (result != -1) throw new CancelledIOException();
out.write(buffer, 0, m);
+ if(logDEBUG)
+ n.logger.log(this, "Written "+m+" bytes ("+this+")",
+ Logger.DEBUG);
}
if(logDEBUG) n.logger.log(this, "Closing, moved "+moved+" of "+
length+" bytes for "+Long.
_______________________________________________
cvs mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/cvs