Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Contributors

Languages

  • Rust 98.8%
  • Shell 1.2%

AltStyle によって変換されたページ (->オリジナル) /