Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document.
Note: Even the most advanced machine translation cannot match the quality of professional translators.
Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
tcp_tw_reuse_switch.sh
Function
The tcp_tw_reuse_switch.sh command is used to enable or disable the function of reusing the TIME_WAIT socket in the TCP connection.
Parameters
Parameter |
Description |
Value |
---|---|---|
-h | Shows help information. | - |
on | Enables the function of reusing the TIME_WAIT socket in the TCP connection. | - |
off | Disables the function of reusing the TIME_WAIT socket in the TCP connection. | - |
Example
-
Enable the function of reusing the TIME_WAIT socket in the TCP connection.
Storage: minisystem> tcp_tw_reuse_switch.sh on Command executed successfully.
-
Disable the function of reusing the TIME_WAIT socket in the TCP connection.
Storage: minisystem> tcp_tw_reuse_switch.sh off WARNING: You are about to disable the function of reusing the TIME_WAIT socket in the TCP connection. After this function is disabled, if the service end closes large amount of TCP connections during a short period, new connections cannot be created on the client for a certain period. Suggestion: Turn on the switch again after related operations. Have you read warning message carefully?(y/n) y Are you sure you really want to perform the operation?(y/n) y Command executed successfully.