mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Add missing configuration for DEFAULT_ACCEPTMBOX_SIZE (fix #12509)
Signed-off-by: Paul Guyot <pguyot@kallisys.net>
This commit is contained in:
parent
b4865acd90
commit
336c0946fa
@ -190,6 +190,7 @@ static void esp_wifi_config_info(void)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_ESP_NETIF_TCPIP_LWIP
|
#ifdef CONFIG_ESP_NETIF_TCPIP_LWIP
|
||||||
|
ESP_LOGI(TAG, "accept mbox: %d", CONFIG_LWIP_ACCEPTMBOX_SIZE);
|
||||||
ESP_LOGI(TAG, "tcpip mbox: %d", CONFIG_LWIP_TCPIP_RECVMBOX_SIZE);
|
ESP_LOGI(TAG, "tcpip mbox: %d", CONFIG_LWIP_TCPIP_RECVMBOX_SIZE);
|
||||||
ESP_LOGI(TAG, "udp mbox: %d", CONFIG_LWIP_UDP_RECVMBOX_SIZE);
|
ESP_LOGI(TAG, "udp mbox: %d", CONFIG_LWIP_UDP_RECVMBOX_SIZE);
|
||||||
ESP_LOGI(TAG, "tcp mbox: %d", CONFIG_LWIP_TCP_RECVMBOX_SIZE);
|
ESP_LOGI(TAG, "tcp mbox: %d", CONFIG_LWIP_TCP_RECVMBOX_SIZE);
|
||||||
|
@ -665,6 +665,20 @@ menu "LWIP"
|
|||||||
mail box is full, the LWIP drops the packets. So generally we need to make sure the TCP
|
mail box is full, the LWIP drops the packets. So generally we need to make sure the TCP
|
||||||
receive mail box is big enough to avoid packet drop between LWIP core and application.
|
receive mail box is big enough to avoid packet drop between LWIP core and application.
|
||||||
|
|
||||||
|
config LWIP_ACCEPTMBOX_SIZE
|
||||||
|
int "Default TCP accept mail box size"
|
||||||
|
default 6
|
||||||
|
range 1 64 if !LWIP_WND_SCALE
|
||||||
|
range 1 255 if LWIP_WND_SCALE
|
||||||
|
help
|
||||||
|
Set TCP accept mail box size. Generally bigger value means supporting larger backlogs
|
||||||
|
but more memory. The recommended value is 6, but applications can set it to a lower value
|
||||||
|
if listening servers are meant to have a smaller backlog.
|
||||||
|
|
||||||
|
TCP accept mail box is a per socket mail box, when the application listens for connections
|
||||||
|
with a given listening TCP socket. If the mailbox is full, LWIP will send a RST packet and
|
||||||
|
the client will fail to connect.
|
||||||
|
|
||||||
config LWIP_TCP_QUEUE_OOSEQ
|
config LWIP_TCP_QUEUE_OOSEQ
|
||||||
bool "Queue incoming out-of-order segments"
|
bool "Queue incoming out-of-order segments"
|
||||||
default y
|
default y
|
||||||
|
@ -849,7 +849,7 @@ static inline uint32_t timeout_from_offered(uint32_t lease, uint32_t min)
|
|||||||
* The queue size value itself is platform-dependent, but is passed to
|
* The queue size value itself is platform-dependent, but is passed to
|
||||||
* sys_mbox_new() when the acceptmbox is created.
|
* sys_mbox_new() when the acceptmbox is created.
|
||||||
*/
|
*/
|
||||||
#define DEFAULT_ACCEPTMBOX_SIZE 6
|
#define DEFAULT_ACCEPTMBOX_SIZE CONFIG_LWIP_ACCEPTMBOX_SIZE
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* DEFAULT_THREAD_STACKSIZE: The stack size used by any other lwIP thread.
|
* DEFAULT_THREAD_STACKSIZE: The stack size used by any other lwIP thread.
|
||||||
|
@ -362,6 +362,7 @@ CONFIG_LWIP_TCP_MSL=60000
|
|||||||
CONFIG_LWIP_TCP_SND_BUF_DEFAULT=5744
|
CONFIG_LWIP_TCP_SND_BUF_DEFAULT=5744
|
||||||
CONFIG_LWIP_TCP_WND_DEFAULT=5744
|
CONFIG_LWIP_TCP_WND_DEFAULT=5744
|
||||||
CONFIG_LWIP_TCP_RECVMBOX_SIZE=6
|
CONFIG_LWIP_TCP_RECVMBOX_SIZE=6
|
||||||
|
CONFIG_LWIP_ACCEPTMBOX_SIZE=6
|
||||||
CONFIG_LWIP_TCP_QUEUE_OOSEQ=y
|
CONFIG_LWIP_TCP_QUEUE_OOSEQ=y
|
||||||
CONFIG_LWIP_TCP_OVERSIZE_MSS=y
|
CONFIG_LWIP_TCP_OVERSIZE_MSS=y
|
||||||
CONFIG_LWIP_TCP_OVERSIZE_QUARTER_MSS=
|
CONFIG_LWIP_TCP_OVERSIZE_QUARTER_MSS=
|
||||||
|
Loading…
Reference in New Issue
Block a user