/closewait

closewait closes closed-wait sockets via procfs and ptrace

Primary LanguageRustMIT LicenseMIT

closewait

closewait closes closed-wait sockets via procfs and ptrace

Purpose

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.

Usage

oneline command

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>

Install

Download the binary from closewait/releases

only support linux platform

License

closewait is under the MIT license. See the LICENSE file for details.