Skip to content

Commit

Permalink
Easy close bug reproducer
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Saveau <[email protected]>
  • Loading branch information
SUPERCILEX committed Jul 31, 2024
1 parent 0d2ebe2 commit f2b997e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1830,8 +1830,7 @@ fn fuzz(
Ok(())
}

let distr =
WeightedAliasIndex::new(vec![550u32, 450, 40000, 20000, 20000, 30000, 100, 10]).unwrap();
let distr = WeightedAliasIndex::new(vec![550u32, 450]).unwrap();
let entry_size_distr =
LogNormal::from_mean_cv(f64::from(mean_size), f64::from(cv_size)).unwrap();
let mut rng = Xoshiro256PlusPlus::seed_from_u64(seed);
Expand Down
2 changes: 1 addition & 1 deletion server/src/reactor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ pub fn run(allocator: &mut Allocator) -> Result<(), CliError> {
}

// TODO pending closes: https://github.com/axboe/liburing/issues/1193
if pending_accept && clients.pending_closes == 0 {
if pending_accept {
info!("Restoring ability to accept new clients.");
pending_entries.push(accept.clone());
pending_accept = false;
Expand Down

0 comments on commit f2b997e

Please sign in to comment.