add LINGER to menuconfig
This commit is contained in:
parent
8688bd0593
commit
15916dfbec
1 changed files with 8 additions and 5 deletions
|
@ -68,11 +68,14 @@ menu "LWIP"
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
Enabling this option allows SO_LINGER processing.
|
Enabling this option allows SO_LINGER processing.
|
||||||
When close socket, the TCP connection will be immediately disconnected.
|
l_onoff = 1,l_linger can set the timeout.
|
||||||
The unsent data in the send buffer will be discarded and an RST message
|
|
||||||
will be sent to the other party. It is worth noting that because of this way,
|
If l_linger=0, When a connection is closed, TCP will terminate the connection.
|
||||||
the abnormal handshake in 4 ends the TCP connection, the TCP connection will
|
This means that TCP will discard any data packets stored in the socket send buffer
|
||||||
not enter the 'TIME_WAIT' state.
|
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"
|
||||||
|
|
Loading…
Reference in a new issue