Skip to content

Change default redirect limit to 0#887

Merged
hatoo merged 1 commit into
masterfrom
redirect0
Jul 11, 2026
Merged

Change default redirect limit to 0#887
hatoo merged 1 commit into
masterfrom
redirect0

Conversation

@hatoo

@hatoo hatoo commented Jul 11, 2026

Copy link
Copy Markdown
Owner

Summary

Changes the default value of -r / --redirect from 10 to 0 (no redirection).

Following redirects requires looking up the Location header on every response, which shows up as overhead in the hot path. Most load tests target a single endpoint and don't need redirection, so this disables it by default. Users who need it can opt back in with -r <N>.

Notes

  • This is a user-visible behavior change: URLs that previously got followed will now report the 3xx status instead.
  • tests/tests.rs now passes -r 10 explicitly in the test that exercises redirection.
  • README usage output updated to match the new default.

🤖 Generated with Claude Code

Following redirects requires looking up the `Location` header on every
response, which shows up as overhead in the hot path. Most load tests
target a single endpoint and don't need redirection, so disable it by
default; pass `-r <N>` to opt back in.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@hatoo
hatoo merged commit d6cfd83 into master Jul 11, 2026
23 checks passed
@hatoo hatoo mentioned this pull request Jul 11, 2026
@hatoo
hatoo deleted the redirect0 branch July 11, 2026 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant