2007-03-07 zzz

* Streaming lib changes to improve upstream performance during congestion:
    *   Change min window size from 12 to 1
    *   Change max timeout from 10 to 45 sec
    *   Change initial timeout from 10 to 15 sec
    *   Change intial window size for i2psnark from 12 to 1
    *   Change slow start growth rate for i2psnark from 1/2 to 1
This commit is contained in:
zzz
2007-03-07 05:11:45 +00:00
committed by zzz
parent 2088a28053
commit 0960cafaf5
5 changed files with 21 additions and 6 deletions

View File

@ -72,7 +72,7 @@ public class Connection {
private long _lifetimeDupMessageSent;
private long _lifetimeDupMessageReceived;
public static final long MAX_RESEND_DELAY = 10*1000;
public static final long MAX_RESEND_DELAY = 45*1000;
public static final long MIN_RESEND_DELAY = 2*1000;
/** wait up to 5 minutes after disconnection so we can ack/close packets */

View File

@ -57,7 +57,7 @@ public class ConnectionOptions extends I2PSocketOptionsImpl {
static final int INITIAL_WINDOW_SIZE = 12;
static final int DEFAULT_MAX_SENDS = 8;
static final int MIN_WINDOW_SIZE = INITIAL_WINDOW_SIZE;
static final int MIN_WINDOW_SIZE = 1;
public ConnectionOptions() {
super();
@ -206,7 +206,7 @@ public class ConnectionOptions extends I2PSocketOptionsImpl {
public void setRTT(int ms) {
if (_rto == 0) {
_rttDev = ms;
_rto = (int)Connection.MAX_RESEND_DELAY;
_rto = ms + ms / 2;
}
synchronized (_trend) {
_trend[0] = _trend[1];