mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 13:18:50 +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:
parent
8f72c7626c
commit
e68ffb9f99
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue