net/tcp: Back out part of commit d944388888
. I see a few places that say that the maximum receive window size is 32,767 (INT16_MAX), but most say that it is 65,535 (UINT16_MAX).
This commit is contained in:
parent
d944388888
commit
5764d5a529
@ -152,9 +152,9 @@ uint16_t tcp_get_recvwindow(FAR struct net_driver_s *dev)
|
||||
*/
|
||||
|
||||
rwnd = (navail * CONFIG_IOB_BUFSIZE) + mss;
|
||||
if (rwnd > INT16_MAX)
|
||||
if (rwnd > UINT16_MAX)
|
||||
{
|
||||
rwnd = INT16_MAX;
|
||||
rwnd = UINT16_MAX;
|
||||
}
|
||||
|
||||
/* Save the new receive window size */
|
||||
|
Loading…
Reference in New Issue
Block a user