net/tcp: send the ack on nonblock mode

Change-Id: Ib5b74a97393c3fed4cc00c3678d738c1cb27ce1a
Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
chao.an
2020-12-15 19:56:05 +08:00
parent 984defadd0
commit ede54cad35
+1 -2
View File
@@ -811,8 +811,7 @@ ssize_t psock_tcp_recvfrom(FAR struct socket *psock, FAR void *buf,
/* Receive additional data from read-ahead buffer, send the ACK timely. */
else if (state.ir_recvlen > 0 && conn->rcv_wnd == 0 &&
conn->rcv_ackcb == NULL)
if (conn->rcv_wnd == 0 && conn->rcv_ackcb == NULL)
{
conn->rcv_ackcb = tcp_callback_alloc(conn);
if (conn->rcv_ackcb)