Update of /cvsroot/freenet/freenet/src/freenet/message/client
In directory sc8-pr-cvs1:/tmp/cvs-serv16753/src/freenet/message/client
Modified Files:
ClientMessage.java
Log Message:
6224:
More debugging of PeerHandler and supporting microarchitectural changes.
- Splitfile fetch between 2 test nodes works again, rather than failing with RNFs.
- Fix totalDataSent i.e. fix OCM's report of total data sent on a conn
- Encrypt data at send time. Not in advance in packet.
- Locking changes.
- Add hasTrailer() to Message. Implement it on all Messages.
- Make a distinction between needsConnection as in can we route to it, or do we want a
new connection if possible.
- Keep separate queues for messages with and without trailers in PeerHandler.
- Messages without trailers take priority.
- needConnection(true) returns false if we have no messages queued and no trailers
sending and we are not in the RT.
- Remove closed conns from the PeerHandler when we find them. They will still be in
the OCM.
- SendData: Count size of padding sent the same way we count the non-padding - don't
add it on and therefore don't finish until after we have sent it.
Add a TODO about the data: protocol
- Cancel outwardSender callback in Pending after we get Accepted. We may have a bug
causing notifications to be lost.
- Fix possible NPE in FnpLink.encryptBytes.
Logging
Also some fixes and optimizations since 6223 by other people.
Index: ClientMessage.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/message/client/ClientMessage.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- ClientMessage.java 8 Oct 2003 20:12:49 -0000 1.4
+++ ClientMessage.java 8 Oct 2003 22:54:18 -0000 1.5
@@ -76,7 +76,11 @@
}
return raw;
}
-
+
+ public boolean hasTrailer() {
+ return dataLength > 0;
+ }
+
public long getDataLength() {
return dataLength;
}
_______________________________________________
cvs mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/cvs