Эх сурвалжийг харах

feat(lwip): make LWIP TCP rto time configurable

yuanjm 5 жил өмнө
parent
commit
458ed4085d

+ 7 - 0
components/lwip/Kconfig

@@ -449,6 +449,13 @@ menu "LWIP"
             help
             help
                 Enable this feature to support TCP window scaling.
                 Enable this feature to support TCP window scaling.
 
 
+        config LWIP_TCP_RTO_TIME
+            int "Default TCP rto time"
+            default 3000
+            help
+                Set default TCP rto time for a reasonable initial rto.
+                In bad network environment, recommend set value of rto time to 1500.
+
     endmenu # TCP
     endmenu # TCP
 
 
     menu "UDP"
     menu "UDP"

+ 1 - 1
components/lwip/lwip

@@ -1 +1 @@
-Subproject commit 50e4e0d1821a6e5deab0ead9f35ffb4e60625ea6
+Subproject commit 64b640ecae5a6ce510814944d75e9ff408d3fc8d

+ 6 - 0
components/lwip/port/esp32/include/lwipopts.h

@@ -376,6 +376,12 @@
 #define TCP_RCV_SCALE                   CONFIG_LWIP_TCP_RCV_SCALE
 #define TCP_RCV_SCALE                   CONFIG_LWIP_TCP_RCV_SCALE
 #endif
 #endif
 
 
+/**
+ * LWIP_TCP_RTO_TIME: TCP rto time.
+ * Default is 3 second.
+ */
+#define LWIP_TCP_RTO_TIME             CONFIG_LWIP_TCP_RTO_TIME
+
 /*
 /*
    ----------------------------------
    ----------------------------------
    ---------- Pbuf options ----------
    ---------- Pbuf options ----------