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

Modified Files:
        FnpLink.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: FnpLink.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/session/FnpLink.java,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- FnpLink.java        4 Oct 2003 22:29:34 -0000       1.32
+++ FnpLink.java        8 Oct 2003 22:54:18 -0000       1.33
@@ -789,10 +789,10 @@
     
     public void encryptBytes(byte[] buf, int offset, int length) 
        throws IOException {
-       OutputStream os = out;
+       CipherOutputStream os = out;
        if(os == null)
            throw new IOException("already closed!");
-       PCFBMode ctx = out.getCipher();
+       PCFBMode ctx = os.getCipher();
        if(ctx != null)
            ctx.blockEncipher(buf, offset, length);
     }

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

Reply via email to