The source project of this merge request has been removed.
Prevent the sender from sending too far ahead of an unacked packet
Prevents the following scenario from happening:
- Senders window grows past MAX_SIZE/2
- First packet in the window gets lost, the rest get acked
- Sender sends another full window
- Receiver's window exceeds MAX_SIZE and drops all packets after that
With many lost packets recovery is very slow and there is a big drop in throughput.