]> git.ipfire.org Git - thirdparty/grub.git/commit
tcp: ack when we get an OOO/lost packet
authorJosef Bacik <jbacik@fb.com>
Wed, 12 Aug 2015 15:16:22 +0000 (08:16 -0700)
committerAndrei Borzenkov <arvidjaar@gmail.com>
Mon, 7 Dec 2015 17:52:27 +0000 (20:52 +0300)
commitfb478079182f3b21603834eaeb9026e051f88c33
tree11d12dfaa3a18fc0076af07d9a265568c3265825
parenta03c1034f6062e69075056c8f31b90e159ce5244
tcp: ack when we get an OOO/lost packet

While adding tcp window scaling support I was finding that I'd get some packet
loss or reordering when transferring from large distances and grub would just
timeout.  This is because we weren't ack'ing when we got our OOO packet, so the
sender didn't know it needed to retransmit anything, so eventually it would fill
the window and stop transmitting, and we'd time out.  Fix this by ACK'ing when
we don't find our next sequence numbered packet.  With this fix I no longer time
out.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fb.com>
grub-core/net/tcp.c