Description
If the send window closes during a batch send, we stop adding packets to the unsent queue. Since we are still incrementing the unsent sequence number, those packets are effectively lost.
How to Reproduce
Steps to reproduce the behavior:
- Send enough packets in a batch to fill the send window
- After receiving some acks, we should send all of the unsent packets.
- Instead we send one packet and drop the others.
Expected Behavior
We should buffer unsent packets until the send window opens and then reliably send all of the unsent packets.