]> granicus.if.org Git - esp-idf/commitdiff
Change the default value of TCP_MSS to 1440 and TCP_MSS Range : [576 1460]
authorxiehang <xiehang@espressif.com>
Thu, 9 May 2019 09:59:25 +0000 (17:59 +0800)
committerxiehang <xiehang@espressif.com>
Thu, 9 May 2019 09:59:25 +0000 (17:59 +0800)
components/lwip/Kconfig

index 2d7c5731ecb6f6745c00e6d26b68dff12eb016cd..53ce0f3d4eed61c7ef42de570600f3dc6e5dab1b 100644 (file)
@@ -294,12 +294,14 @@ menu "LWIP"
 
         config TCP_MSS
             int "Maximum Segment Size (MSS)"
-            default 1436
-            range 1220 1436
+            default 1440
+            range 576 1460
             help
                 Set maximum segment size for TCP transmission.
 
-                Can be set lower to save RAM, the default value 1436 will give best throughput.
+                Can be set lower to save RAM, the default value 1460(ipv4)/1440(ipv6) will give best throughput.
+                IPv4 TCP_MSS Range: 576 <= TCP_MSS <= 1460
+                IPv6 TCP_MSS Range: 1220<= TCP_mSS <= 1440
 
         config TCP_MSL
             int "Maximum segment lifetime (MSL)"