Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Config.uk
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,17 @@ config LWIP_NUM_TCPCON
config LWIP_NUM_TCPLISTENERS
int "Maximum number of simultaneous TCP listeners"
default 64

config LWIP_TCP_MSL
int "Maximum segment lifetime (ms)"
default 60000
help
The maximum segment lifetime in milliseconds, used to determine
the TIME_WAIT timeout (2 * TCP_MSL). Connections remain in
TIME_WAIT state for this duration after closing, consuming
resources. Lower values allow faster connection recycling at the
cost of potential duplicate packet issues. Default is 60000 (60s),
resulting in a 120s TIME_WAIT.
endif

config LWIP_ICMP
Expand Down
1 change: 1 addition & 0 deletions include/lwipopts.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ void sys_free(void *ptr);

#if LWIP_TCP
#define TCP_MSS CONFIG_LWIP_TCP_MSS
#define TCP_MSL ((u32_t)CONFIG_LWIP_TCP_MSL)
#define TCP_CALCULATE_EFF_SEND_MSS 1
#define IP_FRAG 0

Expand Down
Loading