Skip to content

Commit

Permalink
fix: too many open files in unix system (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
gamelife1314 authored Apr 18, 2023
1 parent 20ed7dd commit 5701c06
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# v0.1.7 - 2023-04-18

:wave::wave::wave:, Fix too many open files in unix system.

# v0.1.6 - 2023-04-02

add docker image to ghcr.io.
Expand Down
12 changes: 11 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rsb"
version = "0.1.6"
version = "0.1.7"
edition = "2021"
authors = ["MichaelFu <[email protected]>"]
license = "MIT"
Expand Down Expand Up @@ -33,6 +33,7 @@ serde_json = "1.0.94"
serde = {version = "1.0.158", features = ["derive"]}
colored = "2.0.0"
concolor-clap = "0.1.0"
rlimit = "0.9.1"


[[bin]]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![Build Status](https://github.com/gamelife1314/rsb/workflows/CI/badge.svg)](https://github.com/gamelife1314/rsb/actions)
[![License MIT](https://img.shields.io/badge/liccense-MIT-green?style=flat&logo=PowerShell)](https://github.com/gamelife1314/rsb/blob/main/LICENSE)
[![Codecov](https://codecov.io/gh/gamelife1314/rsb/branch/main/graph/badge.svg)](https://app.codecov.io/gh/gamelife1314/rsb)
[![Crates.io](https://img.shields.io/badge/crates.io-v0.1.6-blue)](https://crates.io/crates/rsb)
[![Crates.io](https://img.shields.io/badge/crates.io-v0.1.7-blue)](https://crates.io/crates/rsb)

`rsb` is a http server benchmark tool written in rust. The development of this tool is mainly inspired
by the [`bombardier`](https://github.com/codesenberg/bombardier) project, and I would like to thank the author for his
Expand Down
2 changes: 2 additions & 0 deletions src/bin/rsb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ fn main() -> anyhow::Result<()> {
std::process::exit(0);
}

rlimit::increase_nofile_limit(u64::MAX).unwrap();

print_tip(&arg)?;
let pb = create_progress_bar(&arg);
let output_format = arg.output_format;
Expand Down

0 comments on commit 5701c06

Please sign in to comment.