mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 09:18:00 +08:00
net/tcp: send the ack on nonblock mode
Change-Id: Ib5b74a97393c3fed4cc00c3678d738c1cb27ce1a Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user