forked from I2P_Developers/i2p.i2p
SSU: Extend timeout for msgs with multiple fragments (ticket #2640)
This commit is contained in:
@ -1870,7 +1870,8 @@ public class PeerState {
|
|||||||
if (state.push())
|
if (state.push())
|
||||||
_messagesSent++;
|
_messagesSent++;
|
||||||
|
|
||||||
state.setNextSendTime(now + rto);
|
// messages with multiple fragments need more time
|
||||||
|
state.setNextSendTime(now + rto + ((state.getFragmentCount() - 1) * ACKSender.ACK_FREQUENCY));
|
||||||
|
|
||||||
//if (peer.getSendWindowBytesRemaining() > 0)
|
//if (peer.getSendWindowBytesRemaining() > 0)
|
||||||
// _throttle.unchoke(peer.getRemotePeer());
|
// _throttle.unchoke(peer.getRemotePeer());
|
||||||
|
Reference in New Issue
Block a user