mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/add_so_linger_to_menuconfig_for_3.3' into 'release/v3.3'
lw-ip:add LINGER to menuconfig(backport 3.3) See merge request espressif/esp-idf!9062
This commit is contained in:
commit
b4c89c6607
@ -65,6 +65,20 @@ menu "LWIP"
|
|||||||
will be redirected to lwip_select(), therefore, select can be used
|
will be redirected to lwip_select(), therefore, select can be used
|
||||||
for sockets only.
|
for sockets only.
|
||||||
|
|
||||||
|
config LWIP_SO_LINGER
|
||||||
|
bool "Enable SO_LINGER processing"
|
||||||
|
default n
|
||||||
|
help
|
||||||
|
Enabling this option allows SO_LINGER processing.
|
||||||
|
l_onoff = 1,l_linger can set the timeout.
|
||||||
|
|
||||||
|
If l_linger=0, When a connection is closed, TCP will terminate the connection.
|
||||||
|
This means that TCP will discard any data packets stored in the socket send buffer
|
||||||
|
and send an RST to the peer.
|
||||||
|
|
||||||
|
If l_linger!=0,Then closesocket() calls to block the process until
|
||||||
|
the remaining data packets has been sent or timed out.
|
||||||
|
|
||||||
config LWIP_SO_REUSE
|
config LWIP_SO_REUSE
|
||||||
bool "Enable SO_REUSEADDR option"
|
bool "Enable SO_REUSEADDR option"
|
||||||
default y
|
default y
|
||||||
|
@ -545,6 +545,11 @@
|
|||||||
*/
|
*/
|
||||||
#define LWIP_TCP_KEEPALIVE 1
|
#define LWIP_TCP_KEEPALIVE 1
|
||||||
|
|
||||||
|
/**
|
||||||
|
* LWIP_SO_LINGER==1: Enable SO_LINGER processing.
|
||||||
|
*/
|
||||||
|
#define LWIP_SO_LINGER CONFIG_LWIP_SO_LINGER
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* LWIP_SO_RCVBUF==1: Enable SO_RCVBUF processing.
|
* LWIP_SO_RCVBUF==1: Enable SO_RCVBUF processing.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user