mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
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:
committed by
Xiang Xiao
parent
8f72c7626c
commit
e68ffb9f99
+1
-1
@@ -694,7 +694,7 @@ found:
|
||||
#ifdef CONFIG_NET_TCP_WRITE_BUFFERS
|
||||
unackseq = conn->sndseq_max;
|
||||
#else
|
||||
unackseq = tcp_addsequence(conn->sndseq, conn->tx_unacked);
|
||||
unackseq = tcp_getsequence(conn->sndseq);
|
||||
#endif
|
||||
|
||||
/* Get the sequence number of that has just been acknowledged by this
|
||||
|
||||
Reference in New Issue
Block a user