* 2005-08-21 0.6.0.3 released
2005-08-21 jrandom * If we already have an established SSU session with the Charlie helping test us, cancel the test with the status of "unknown".
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project basedir="." default="all" name="i2p">
|
||||
|
||||
|
||||
<target name="all" >
|
||||
<echo message="Useful targets: " />
|
||||
<echo message=" dist: distclean then package everything up (installer, clean tarball, update tarball)" />
|
||||
@ -28,6 +28,7 @@
|
||||
<ant dir="apps/routerconsole/java/" target="jar" />
|
||||
<ant dir="apps/addressbook/" target="war" />
|
||||
<ant dir="apps/susimail/" target="war" />
|
||||
<ant dir="apps/syndie/java/" target="jar" /> <!-- not pushed in the update... yet -->
|
||||
</target>
|
||||
<target name="buildWEB">
|
||||
<ant dir="apps/jetty" target="fetchJettylib" />
|
||||
@ -58,6 +59,8 @@
|
||||
<copy file="installer/lib/jbigi/jbigi.jar" todir="build" />
|
||||
<copy file="apps/addressbook/dist/addressbook.war" todir="build/" />
|
||||
<copy file="apps/susimail/susimail.war" todir="build/" />
|
||||
<copy file="apps/syndie/java/build/syndie.jar" todir="build/" />
|
||||
<copy file="apps/syndie/syndie.war" todir="build/" />
|
||||
</target>
|
||||
<target name="javadoc">
|
||||
<mkdir dir="./build" />
|
||||
|
@ -14,8 +14,8 @@ package net.i2p;
|
||||
*
|
||||
*/
|
||||
public class CoreVersion {
|
||||
public final static String ID = "$Revision: 1.37 $ $Date: 2005/08/03 13:58:12 $";
|
||||
public final static String VERSION = "0.6.0.2";
|
||||
public final static String ID = "$Revision: 1.38 $ $Date: 2005/08/08 15:35:50 $";
|
||||
public final static String VERSION = "0.6.0.3";
|
||||
|
||||
public static void main(String args[]) {
|
||||
System.out.println("I2P Core version: " + VERSION);
|
||||
|
@ -1,4 +1,10 @@
|
||||
$Id: history.txt,v 1.226 2005/08/12 18:54:47 jrandom Exp $
|
||||
$Id: history.txt,v 1.227 2005/08/17 15:05:03 jrandom Exp $
|
||||
|
||||
* 2005-08-21 0.6.0.3 released
|
||||
|
||||
2005-08-21 jrandom
|
||||
* If we already have an established SSU session with the Charlie helping
|
||||
test us, cancel the test with the status of "unknown".
|
||||
|
||||
2005-08-17 jrandom
|
||||
* Revise the SSU peer testing protocol so that Bob verifies Charlie's
|
||||
|
@ -15,9 +15,9 @@ import net.i2p.CoreVersion;
|
||||
*
|
||||
*/
|
||||
public class RouterVersion {
|
||||
public final static String ID = "$Revision: 1.215 $ $Date: 2005/08/12 18:54:47 $";
|
||||
public final static String VERSION = "0.6.0.2";
|
||||
public final static long BUILD = 3;
|
||||
public final static String ID = "$Revision: 1.216 $ $Date: 2005/08/17 15:05:03 $";
|
||||
public final static String VERSION = "0.6.0.3";
|
||||
public final static long BUILD = 0;
|
||||
public static void main(String args[]) {
|
||||
System.out.println("I2P Router version: " + VERSION);
|
||||
System.out.println("Router ID: " + RouterVersion.ID);
|
||||
|
@ -127,6 +127,7 @@ public class StatisticsManager implements Service {
|
||||
includeRate("udp.statusDifferent", stats, new long[] { 20*60*1000 });
|
||||
includeRate("udp.statusReject", stats, new long[] { 20*60*1000 });
|
||||
includeRate("udp.statusUnknown", stats, new long[] { 20*60*1000 });
|
||||
includeRate("udp.statusKnownharlie", stats, new long[] { 1*60*1000, 10*60*1000 });
|
||||
includeRate("udp.addressUpdated", stats, new long[] { 1*60*1000 });
|
||||
includeRate("udp.addressTestInsteadOfUpdate", stats, new long[] { 1*60*1000 });
|
||||
|
||||
|
@ -43,6 +43,7 @@ class PeerTestManager {
|
||||
_recentTests = Collections.synchronizedList(new ArrayList(16));
|
||||
_packetBuilder = new PacketBuilder(context);
|
||||
_currentTest = null;
|
||||
_context.statManager().createRateStat("udp.statusKnownCharlie", "How often the bob we pick passes us to a charlie we already have a session with?", "udp", new long[] { 60*1000, 20*60*1000, 60*60*1000 });
|
||||
}
|
||||
|
||||
private static final int RESEND_TIMEOUT = 5*1000;
|
||||
@ -149,6 +150,17 @@ class PeerTestManager {
|
||||
_log.error("Unable to get our IP from bob's reply: " + from + ", " + testInfo, uhe);
|
||||
}
|
||||
} else {
|
||||
PeerState charlieSession = _transport.getPeerState(from);
|
||||
if (charlieSession != null) {
|
||||
if (_log.shouldLog(Log.WARN))
|
||||
_log.warn("Bob chose a charlie we already have a session to, cancelling the test and rerunning (bob: "
|
||||
+ _currentTest + ", charlie: " + from + ")");
|
||||
_currentTest = null;
|
||||
_context.statManager().addRateData("udp.statusKnownCharlie", 1, 0);
|
||||
honorStatus(CommSystemFacade.STATUS_UNKNOWN);
|
||||
return;
|
||||
}
|
||||
|
||||
if (test.getReceiveCharlieTime() > 0) {
|
||||
// this is our second charlie, yay!
|
||||
test.setAlicePortFromCharlie(testInfo.readPort());
|
||||
|
Reference in New Issue
Block a user