Author: toad
Date: 2008-03-19 15:38:28 +0000 (Wed, 19 Mar 2008)
New Revision: 18601
Modified:
trunk/freenet/src/freenet/node/RequestHandler.java
Log:
Flag for whether to send the old form SSKDataFound
Modified: trunk/freenet/src/freenet/node/RequestHandler.java
===================================================================
--- trunk/freenet/src/freenet/node/RequestHandler.java 2008-03-19 15:37:17 UTC
(rev 18600)
+++ trunk/freenet/src/freenet/node/RequestHandler.java 2008-03-19 15:38:28 UTC
(rev 18601)
@@ -335,6 +335,8 @@
}
}
+ static boolean SEND_OLD_FORMAT_SSK = true;
+
private void sendSSK(long uid2, byte[] headers, byte[] data, boolean
needsPubKey2, DSAPublicKey pubKey) throws NotConnectedException {
// SUCCESS requires that BOTH the pubkey AND the data/headers
have been received.
// The pubKey will have been set on the SSK key, and the
SSKBlock will have been constructed.
@@ -363,8 +365,10 @@
}, "Send throttled SSK data");
- Message df = DMT.createFNPSSKDataFound(uid, rs.getHeaders(),
rs.getSSKData());
- source.sendAsync(df, null, 0, this);
+ if(SEND_OLD_FORMAT_SSK) {
+ Message df = DMT.createFNPSSKDataFound(uid,
rs.getHeaders(), rs.getSSKData());
+ source.sendAsync(df, null, 0, this);
+ }
if(needsPubKey) {
Message pk = DMT.createFNPSSKPubKey(uid,
((NodeSSK)rs.getSSKBlock().getKey()).getPubKey());
source.sendAsync(pk, null, 0, this);