mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 08:04:01 +02:00
correct the check for flow window size
This commit is contained in:
parent
e662209754
commit
577b6bf62f
1 changed files with 1 additions and 1 deletions
|
@ -308,7 +308,7 @@ void SendQueue::run() {
|
|||
// if we didn't find a packet to re-send AND we think we can fit a new packet on the wire
|
||||
// (this is according to the current flow window size) then we send out a new packet
|
||||
if (_hasReceivedHandshakeACK && !sentAPacket) {
|
||||
if (seqlen(SequenceNumber { (uint32_t) _lastACKSequenceNumber }, _currentSequenceNumber) > _flowWindowSize) {
|
||||
if (seqlen(SequenceNumber { (uint32_t) _lastACKSequenceNumber }, _currentSequenceNumber) <= _flowWindowSize) {
|
||||
sentAPacket = maybeSendNewPacket();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue