Details
-
Type: Change
-
Status: Closed
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: V4.1.0.0
-
Labels:None
-
Account:SPC TCP_IP (SPCTCPIP)
Description
The on/off boolean in linger SockOpt options is not useful here:
- By using the LWIP software layer, as the Lwip_Socket_Close() function cannot be blocked, the closing cannot be "lingered".
- By using the Socket API, the close confirmation is always transmitted after all socket resources are freed (after the TIME-WAIT state is terminated). The closing is always "lingered".
In both case, the linger timeout is still useful to set a maximum time before freed the socket resources.
A decision has to be taken: Either this value is relevant just in order to have the same interface as POSIX socket or that value has to be removed.
If this option is keeped, the behaviors have to be documented in the Socket API and LWIP documentation.
Attachments
Issue Links
- relates to
-
PSLWIP-180 Implement socket options for tcp keepalive and close timeout
- Closed