forked from I2P_Developers/i2p.i2p
Streaming: Slow start fix from zlatinb
This commit is contained in:
@ -156,7 +156,7 @@ class Connection {
|
||||
_createdOn = _context.clock().now();
|
||||
_congestionWindowEnd = _options.getWindowSize()-1;
|
||||
_highestAckedThrough = -1;
|
||||
_ssthresh = _options.getMaxWindowSize();
|
||||
_ssthresh = ConnectionPacketHandler.MAX_SLOW_START_WINDOW;
|
||||
_lastCongestionTime = -1;
|
||||
_lastCongestionHighestUnacked = -1;
|
||||
_lastReceivedOn = -1;
|
||||
@ -1562,7 +1562,7 @@ class Connection {
|
||||
|
||||
if (_packet.getNumSends() == 1) {
|
||||
int flightSize = getUnackedPacketsSent();
|
||||
_ssthresh = Math.max( flightSize / 2, 2 );
|
||||
_ssthresh = Math.min(ConnectionPacketHandler.MAX_SLOW_START_WINDOW, Math.max( flightSize / 2, 2 ));
|
||||
}
|
||||
|
||||
if (_log.shouldLog(Log.INFO))
|
||||
|
@ -445,9 +445,6 @@ class ConnectionPacketHandler {
|
||||
// as it often leads to a big packet loss (30-50) all at once that
|
||||
// takes quite a while (a minute or more) to recover from,
|
||||
// especially if crypto tags are lost
|
||||
if (newWindowSize >= MAX_SLOW_START_WINDOW)
|
||||
newWindowSize++;
|
||||
else
|
||||
newWindowSize = Math.min(ssthresh, newWindowSize + acked);
|
||||
} else if (acked < factor)
|
||||
newWindowSize++;
|
||||
|
@ -1,3 +1,10 @@
|
||||
2020-04-17 zzz
|
||||
* Crypto: Disable speculative AES tagset usage
|
||||
* Streaming: Slow start fix
|
||||
|
||||
2020-04-16 zzz
|
||||
* Build: Reproducible build fix (ticket #2279)
|
||||
|
||||
2020-04-14 zzz
|
||||
* Ratchet: Improve muxed decrypt
|
||||
* Streaming:
|
||||
|
@ -18,7 +18,7 @@ public class RouterVersion {
|
||||
/** deprecated */
|
||||
public final static String ID = "Monotone";
|
||||
public final static String VERSION = CoreVersion.VERSION;
|
||||
public final static long BUILD = 9;
|
||||
public final static long BUILD = 10;
|
||||
|
||||
/** for example "-test" */
|
||||
public final static String EXTRA = "";
|
||||
|
Reference in New Issue
Block a user