net/tcp(unbuffered): fixed an issue with unackseq calculation.

Wrong unackseq calculation locked conn->tx_unacked at non-zero values
even if all ACKs were received. Thus unbuffered psock_tcp_send() never completed.
This commit is contained in:
Alexander Lunev
2021-10-10 05:56:51 +03:00
committed by Xiang Xiao
parent 8f72c7626c
commit e68ffb9f99
+1 -1
View File
@@ -694,7 +694,7 @@ found:
#ifdef CONFIG_NET_TCP_WRITE_BUFFERS #ifdef CONFIG_NET_TCP_WRITE_BUFFERS
unackseq = conn->sndseq_max; unackseq = conn->sndseq_max;
#else #else
unackseq = tcp_addsequence(conn->sndseq, conn->tx_unacked); unackseq = tcp_getsequence(conn->sndseq);
#endif #endif
/* Get the sequence number of that has just been acknowledged by this /* Get the sequence number of that has just been acknowledged by this