closewait
closewait closes closed-wait sockets via procfs and ptrace
Kill the close-wait sockets on the fly via procfs like ss state CLOSE-WAIT --kill
in low version kernel which do not have SOCK Destory kernel feature.
closewait -p pid
closewait 0.1.0
USAGE:
closewait [FLAGS] [OPTIONS] --pid <pid>
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
-v, --verbose Enable verbose mode
OPTIONS:
-b, --batch <batch> The number of sockets batch to close [default: 1024]
-i, --interval <interval> The interval time to close sockets [default: 1s]
-p, --pid <pid>
Download the binary from closewait/releases
only support linux platform
closewait is under the MIT license. See the LICENSE file for details.