You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/05/31 06:38:02 UTC

[incubator-nuttx] 02/05: tcp_get_recvwindow: Add a comment

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 2ce0457edb048272ba97b35a414e23f76bf7586d
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Fri May 28 17:03:55 2021 +0900

    tcp_get_recvwindow: Add a comment
---
 net/tcp/tcp_recvwindow.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/net/tcp/tcp_recvwindow.c b/net/tcp/tcp_recvwindow.c
index 795f715..4d81f14 100644
--- a/net/tcp/tcp_recvwindow.c
+++ b/net/tcp/tcp_recvwindow.c
@@ -136,6 +136,9 @@ uint16_t tcp_get_recvwindow(FAR struct net_driver_s *dev,
     {
       /* Advertise maximum segment size for window edge if here is no
        * available iobs on current "free" connection.
+       *
+       * Note: hopefully, a single mss-sized packet can be queued by
+       * the throttled=false case in tcp_datahandler().
        */
 
       recvwndo = mss;