这是indexloc提供的服务,不要输入任何密码
Skip to content

HistoryGift/closewait

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

closewait closes closed-wait sockets via procfs and ptrace

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 98.8%
  • Shell 1.2%