Commit e36f67d
net: tcp: Remove incorrect logging of "ACK errors"
Case #1: If ACK received and our retransmit (i.e. unacked) queue is
empty, it's error. It's incorrect because TCP requires ACK to set for
every packet of established connection. For example, if we didn't
send anything to peer, but it sends us new data, it will reuse the
older ack number. It doesn't acknowledge anything new on our side,
but it's not an error in any way.
Case #2: If retransmit queue is only partially acknowledged, it's an
error. Consider that we have 2 packets in the queue, with sequence
numbers (inclusive) 100-199 and 200-399. There's nothing wrong if
we receive ACK with number 200 - it just acknowledges first packet,
we can remove and finish processing. Second packet remains in the
queue to be acknowledged later.
Fixes: zephyrproject-rtos#5504
Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>1 parent ac7b129 commit e36f67d
1 file changed
+0
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
920 | 920 | | |
921 | 921 | | |
922 | 922 | | |
923 | | - | |
924 | | - | |
925 | | - | |
926 | | - | |
927 | | - | |
928 | 923 | | |
929 | 924 | | |
930 | 925 | | |
| |||
945 | 940 | | |
946 | 941 | | |
947 | 942 | | |
948 | | - | |
949 | 943 | | |
950 | 944 | | |
951 | 945 | | |
| |||
0 commit comments