mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-06-05 06:21:43 +00:00
SSU2: Update last rcv time when receiving data, not acks
This commit is contained in:
@@ -812,6 +812,7 @@ public class PeerState {
|
||||
* @since 0.9.52
|
||||
*/
|
||||
protected synchronized void messagePartiallyReceived(long now) {
|
||||
_lastReceiveTime = now;
|
||||
if (_wantACKSendSince <= 0) {
|
||||
_wantACKSendSince = now;
|
||||
new ACKTimer();
|
||||
@@ -1177,8 +1178,7 @@ public class PeerState {
|
||||
if (_sendWindowBytes > MAX_SEND_WINDOW_BYTES)
|
||||
_sendWindowBytes = MAX_SEND_WINDOW_BYTES;
|
||||
long now = _context.clock().now();
|
||||
_lastReceiveTime = now;
|
||||
_lastSendFullyTime = _lastReceiveTime;
|
||||
_lastSendFullyTime = now;
|
||||
|
||||
synchronized(_sendWindowBytesRemainingLock) {
|
||||
_sendWindowBytesRemaining += bytesACKed;
|
||||
|
||||
Reference in New Issue
Block a user