anchao commented on a change in pull request #4070: URL: https://github.com/apache/incubator-nuttx/pull/4070#discussion_r664530004
########## File path: net/tcp/tcp_send.c ########## @@ -372,6 +384,13 @@ static void tcp_sendcommon(FAR struct net_driver_s *dev, /* Update the Receiver Window */ +#ifdef CONFIG_NET_TCP_WINDOW_SCALE + if (recvwndo > 0 && conn->rcv_scale > 0) + { + recvwndo <<= conn->rcv_scale; + } +#endif + Review comment: Yes, I added a API tcp_get_scalewindow() to handle UINT16_MAX check and scale calculation -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org