项目作者: detailyang

项目描述 :
closewait closes closed-wait sockets via procfs and ptrace
高级语言: Rust
项目地址: git://github.com/detailyang/closewait.git
创建时间: 2020-08-02T16:04:53Z
项目社区:https://github.com/detailyang/closewait

开源协议:MIT License

下载




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

  1. closewait 0.1.0
  2. USAGE:
  3. closewait [FLAGS] [OPTIONS] --pid <pid>
  4. FLAGS:
  5. -h, --help Prints help information
  6. -V, --version Prints version information
  7. -v, --verbose Enable verbose mode
  8. OPTIONS:
  9. -b, --batch <batch> The number of sockets batch to close [default: 1024]
  10. -i, --interval <interval> The interval time to close sockets [default: 1s]
  11. -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.