diff --git a/net/tcp/tcp_send_buffered.c b/net/tcp/tcp_send_buffered.c index bc30d4956b..e0a24e52e2 100644 --- a/net/tcp/tcp_send_buffered.c +++ b/net/tcp/tcp_send_buffered.c @@ -804,7 +804,8 @@ static uint16_t psock_send_eventhandler(FAR struct net_driver_s *dev, */ if ((conn->tcpstateflags & TCP_ESTABLISHED) && - (flags & (TCP_POLL | TCP_REXMIT)) && + ((flags & TCP_NEWDATA) == 0) && + (flags & (TCP_POLL | TCP_REXMIT | TCP_ACKDATA)) && !(sq_empty(&conn->write_q)) && conn->snd_wnd > 0) {