mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-10 04:43:33 +00:00
examples: Make tcp_server example support tcp keepalive function
This commit is contained in:
@@ -16,4 +16,21 @@ menu "Example Configuration"
|
||||
help
|
||||
Local port the example server will listen on.
|
||||
|
||||
config EXAMPLE_KEEPALIVE_IDLE
|
||||
int "TCP keep-alive idle time(s)"
|
||||
default 5
|
||||
help
|
||||
Keep-alive idle time. In idle time without receiving any data from peer, will send keep-alive probe packet
|
||||
|
||||
config EXAMPLE_KEEPALIVE_INTERVAL
|
||||
int "TCP keep-alive interval time(s)"
|
||||
default 5
|
||||
help
|
||||
Keep-alive probe packet interval time.
|
||||
|
||||
config EXAMPLE_KEEPALIVE_COUNT
|
||||
int "TCP keep-alive packet retry send counts"
|
||||
default 3
|
||||
help
|
||||
Keep-alive probe packet retry count.
|
||||
endmenu
|
||||
|
Reference in New Issue
Block a user