Repository navigation
Conversation
This was referenced Nov 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With
-qand no TUI, results were collected only after the workers finished. Kanal's queue therefore grew throughout the run, and buffer growth under its internal lock stalled request processing near powers of two.Collect results concurrently in one async task that also handles Ctrl+C. The task owns the accumulated results, avoiding an extra per-result mutex. Keep the pending receive future available on interruption so results already delivered directly by Kanal can be included before draining the queue.
Fixes #910.
Validation:
cargo test --all-targets: 84 tests passed, including new single-worker tests with/without latency correction and Ctrl+C while a response is pending.43c7cf2) and this change, alternating three runs each against a local HTTP server:-z 20s -c 100 -q 27000 --latency-correction --no-tui --worker-threads 4.Maximum completion gap within ±128 completions of each boundary (range across three runs):
Both builds sustained approximately 27,000 RPS. A separate startup pause caused by Linux FD-table expansion remains and is being addressed independently.