net/tcp: send the ack on nonblock mode
Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
parent
076d89907f
commit
5e9e50991c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue