tcp: fix trans data error when fast retrans

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
zhanghongyu
2022-08-30 22:08:05 +08:00
committed by Petro Karashchenko
parent ed89d7252b
commit 3725fe28fb

View File

@@ -780,6 +780,8 @@ static uint16_t psock_send_eventhandler(FAR struct net_driver_s *dev,
* happen until the polling cycle completes).
*/
tcp_setsequence(conn->sndseq, TCP_WBSEQNO(wrb));
devif_iob_send(dev, TCP_WBIOB(wrb), sndlen,
0, tcpip_hdrsize(conn));
if (dev->d_sndlen == 0)