Author: toad
Date: 2008-01-23 13:03:33 +0000 (Wed, 23 Jan 2008)
New Revision: 17206
Modified:
trunk/freenet/src/freenet/node/Version.java
Log:
1102: (mandatory Friday)
Differential noderefs:
- Send a differential noderef on connect including fields we don't need to
include in a noderef.
- physical.udp, ARK fields, are now optional in ARKs and noderefs. We still
send them for now.
L10n:
- German update.
- French update.
Resources:
- Close in finally{} some places.
Request optimisations:
- BlockTransmitter: Save a thread through BT.sendAsync() - sends off thread and
sets a variable with the result and a flag when is done, can wait for it.
- RequestSender: new callback class Listener allows clients to wait for
completion, be notified on RejectedOverload, transfer started, and completion.
- RequestHandler: Save a thread using the above: register self as a Listener in
realRun(), then exit and wait for callback. Make some local variables member
variables to support this. Once RequestSender is finished, wait for the
transfer to finish if necessary, then apply byte counts and finish. Semantics
and much of the code are identical to previous version, but we save a thread
per request. Send a RejectedOverload if we get VERIFY_FAILED despite not having
started a transfer yet, or likewise if TRANSFER_FAILED.
- Unregister and apply byte counts after sending a terminal message - even if
the send fails, the node is disconnected etc. This may not have affected
previous builds because we still had an unregister in run() finally.
Stats:
- Show inserts/requests counts if there are any inserts/requests - even if only
handlers.
Dev stuff:
- Comments.
- Remove some unnecessary casts and semicolons.
- Declare some inner classes and variables static.
- Declare some inner classes protected or private.
- Indenting.
- Don't start the background block encoder thread in the NodeClientCore
constructor.
- Logging.
- Don't grumble because multiple parallel requests for the same data.
- Indenting.
Installer:
- Update the INSTALL file: don't refer to #freenet-refs, 1run.sh etc.
batosai
NEOatNHNG
robert
toad
tommy
zothar
Modified: trunk/freenet/src/freenet/node/Version.java
===================================================================
--- trunk/freenet/src/freenet/node/Version.java 2008-01-23 13:02:26 UTC (rev
17205)
+++ trunk/freenet/src/freenet/node/Version.java 2008-01-23 13:03:33 UTC (rev
17206)
@@ -24,17 +24,17 @@
public static final String protocolVersion = "1.0";
/** The build number of the current revision */
- private static final int buildNumber = 1101;
+ private static final int buildNumber = 1102;
/** Oldest build of Fred we will talk to */
- private static final int oldLastGoodBuild = 1094;
- private static final int newLastGoodBuild = 1101;
+ private static final int oldLastGoodBuild = 1101;
+ private static final int newLastGoodBuild = 1102;
static final long transitionTime;
static {
final Calendar _cal =
Calendar.getInstance(TimeZone.getTimeZone("GMT"));
// year, month - 1 (or constant), day, hour, minute, second
- _cal.set( 2008, Calendar.JANUARY, 21, 0, 0, 0 );
+ _cal.set( 2008, Calendar.JANUARY, 25, 0, 0, 0 );
transitionTime = _cal.getTimeInMillis();
}