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:
Sakari Kapanen 2018-10-24 09:10:56 -06:00 committed by Gregory Nutt
parent dafa180d8d
commit f185c79ea6

View File

@ -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;
}
}