net/tcp: send the ack on nonblock mode

Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
chao.an 2020-12-15 19:56:05 +08:00 committed by Masayuki Ishikawa
parent 076d89907f
commit 5e9e50991c
1 changed files with 1 additions and 2 deletions

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)