]> git.meshlink.io Git - utcp/commit
Reset the snd.nxt pointer when starting packet retransmission.
authorGuus Sliepen <guus@meshlink.io>
Sun, 11 Oct 2015 21:39:23 +0000 (23:39 +0200)
committerGuus Sliepen <guus@sliepen.org>
Sun, 2 Jul 2017 10:01:32 +0000 (12:01 +0200)
commit5d6a4bd71c683042495038e9679cbf7c80d816fd
treededab0919273ae0868240db94bf20a7c3f30d2b7
parent7109995777c654016784a11fdebe3b26e6a0002a
Reset the snd.nxt pointer when starting packet retransmission.

When a packet was lost, and the send buffer contains more than two packets,
this only retransmitted the first packet from the send buffer, then when it
got acked it would continue with the tail of the buffer. Then it would have
to wait for another timeout to send the next packet from the start of the
send buffer. If the application is continuously sending data, then the send
buffer would never become empty and the problem would persist.
utcp.c