mirror of
https://github.com/apache/nuttx.git
synced 2026-05-19 03:03:37 +08:00
nuttx/net/tcp/tcp_input.c: Fix recovery when ackseq > unackseq. The comment near this line says "reset the number of outstanding, unacknowledged bytes". However, the code actually resets the whole TCP connection. It was changed to the current form in commit f034d84ea1 with no explanation of the intent. Recover the line to what it was before that commit.
This commit is contained in:
committed by
Gregory Nutt
parent
dafa180d8d
commit
f185c79ea6
+2
-1
@@ -512,7 +512,8 @@ found:
|
||||
nwarn(" sndseq=%u unacked=%u unackseq=%u ackseq=%u\n",
|
||||
tcp_getsequence(conn->sndseq), conn->unacked, unackseq,
|
||||
ackseq);
|
||||
goto reset;
|
||||
|
||||
conn->unacked = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user