forked from I2P_Developers/i2p.i2p
* TunnelPool: Don't reuse peers for exploratory tunnels
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
2013-07-06 zzz
|
||||||
|
* TunnelPool: Don't reuse peers for exploratory tunnels
|
||||||
|
|
||||||
2013-07-04 zzz
|
2013-07-04 zzz
|
||||||
* Streaming:
|
* Streaming:
|
||||||
- Don't stop timers when session disconnects (tickets #644, #810)
|
- Don't stop timers when session disconnects (tickets #644, #810)
|
||||||
|
@@ -18,7 +18,7 @@ public class RouterVersion {
|
|||||||
/** deprecated */
|
/** deprecated */
|
||||||
public final static String ID = "Monotone";
|
public final static String ID = "Monotone";
|
||||||
public final static String VERSION = CoreVersion.VERSION;
|
public final static String VERSION = CoreVersion.VERSION;
|
||||||
public final static long BUILD = 17;
|
public final static long BUILD = 18;
|
||||||
|
|
||||||
/** for example "-test" */
|
/** for example "-test" */
|
||||||
public final static String EXTRA = "-rc";
|
public final static String EXTRA = "-rc";
|
||||||
|
@@ -1084,7 +1084,7 @@ public class TunnelPool {
|
|||||||
int len = settings.getLengthOverride();
|
int len = settings.getLengthOverride();
|
||||||
if (len < 0)
|
if (len < 0)
|
||||||
len = settings.getLength();
|
len = settings.getLength();
|
||||||
if (len > 0 && _context.random().nextBoolean()) {
|
if (len > 0 && (!settings.isExploratory()) && _context.random().nextBoolean()) {
|
||||||
// look for a tunnel to reuse, if the right length and expiring soon
|
// look for a tunnel to reuse, if the right length and expiring soon
|
||||||
// ignore variance for now.
|
// ignore variance for now.
|
||||||
len++; // us
|
len++; // us
|
||||||
|
Reference in New Issue
Block a user