psock_tcp_recvfrom: Add a comment about window updates

This commit is contained in:
YAMAMOTO Takashi
2021-05-28 17:02:42 +09:00
committed by Xiang Xiao
parent 02b244cb6f
commit 0c606ecb8e
+6 -1
View File
@@ -809,7 +809,12 @@ ssize_t psock_tcp_recvfrom(FAR struct socket *psock, FAR void *buf,
}
}
/* Receive additional data from read-ahead buffer, send the ACK timely. */
/* Receive additional data from read-ahead buffer, send the ACK timely.
*
* Revisit: Because IOBs are system-wide resources, consuming the read
* ahead buffer would update recv window of all connections in the system,
* not only this particular connection.
*/
if (conn->rcv_wnd == 0 && conn->rcv_ackcb == NULL)
{