Socket close delay
The solinger parameter sets the delay value in seconds for closing a socket.
solinger
- Description
- Set solinger to the number of seconds to delay closing the socket or 0 to close the socket immediately. If the setting is enabled, and data transmission is still in progress, a call to close the socket blocks the calling program. The calling program is blocked until the data is transmitted, or until the connection times out. If the setting is disabled, a call to close the socket returns without blocking the caller and TCP/IP still tries to send the data. Normally, this transfer is successful, but it cannot be guaranteed, because TCP/IP repeats the send request for only a specified period.
- Default value
- There is no default value for this parameter.
- Where set
- This parameter is in the SSL protocol parameters subsection of the GATEWAY section of the configuration file.
- Example
solinger=10000