From 0c606ecb8e0048840639f52bc7268e8b63ada2bd Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Fri, 28 May 2021 17:02:42 +0900 Subject: [PATCH] psock_tcp_recvfrom: Add a comment about window updates --- net/tcp/tcp_recvfrom.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/net/tcp/tcp_recvfrom.c b/net/tcp/tcp_recvfrom.c index 1d11d769930..973a5c56a97 100644 --- a/net/tcp/tcp_recvfrom.c +++ b/net/tcp/tcp_recvfrom.c @@ -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) {