Repository navigation
feat: implement per-host rate limiting and statistics #1929
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
f152b4d
fix: add support for name attributes in HTML fragment extraction
mre f165f37
feat: implement per-host rate limiting and statistics
mre c7480ff
fix: skip rate limiting tracking for file:// URLs
mre 462ba32
feat: improve rate limiting logging and output formatting
mre 7d25ea2
Fix lints
mre 956e20a
Fix cookie jar sharing in per-host rate limiting
mre 20844d2
Fix missing User-Agent header in per-host clients
mre 9ecb5e9
Bring back global headers (e.g. for user-agent)
mre ded5bc1
Fix redirect handling in per-host clients
mre 4577865
Pass missing args: max_redirects, timeout, allow_insecure
mre 4e04271
Refactor host stats formatters to remove unused parameters and improv…
mre eed7576
remove confusing comment
mre ae104a0
Create `display_per_host_statistics` in separate file
mre 8437068
Remove redundant check for `self.hosts`
mre 92854c1
Import `std::collections::HashMap`
mre ada65ac
Use closures instead of if
mre d6f7836
Rename flags:
mre 5960946
Fix `help` formatting
mre ea22e44
Reduce code duplication
thomas-zahner d33650d
Update documentation to reference hosts option
thomas-zahner dbada0d
clippy --fix
thomas-zahner 3e0755c
Return HostPool instead of Client & code cleanup
thomas-zahner 0939004
Move inner `Arc`s to the outside
thomas-zahner 087ed56
Fix deadlock
thomas-zahner 040971d
Update config options
thomas-zahner 328ee22
Simplify host pool
thomas-zahner 42dc072
Build host-specific reqwest clients again
thomas-zahner 595e634
Remove max_concurrency and global_semaphore
thomas-zahner d374155
Update docs & reduce complexity
thomas-zahner 3fdd992
Extract output functions
thomas-zahner 7be4516
Replace Window with Vec
thomas-zahner 420e822
Update RateLimitError
thomas-zahner 00d0c13
Create RequestInterval
thomas-zahner 08602e7
Remove RateLimitError
thomas-zahner 75df7e8
Test and improve rate limit header handling
thomas-zahner 3d0d4fa
Apply @mre's suggestions
thomas-zahner c748f7d
Apply suggestions from code review
thomas-zahner 6297aa0
Fix tests
thomas-zahner a551fee
Minor improvements
thomas-zahner 5704305
Remove reqwest_client from WebsiteChecker
thomas-zahner d5e8afe
Reference rate-limits crate as per @mre's suggestion
thomas-zahner 0f21985
Update option names and the default interval value
thomas-zahner b815e61
Allow 0 to disable per-host rate limiting
thomas-zahner File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Extract output functions
- Loading branch information
commit 3fdd99255563866aefdd3175718d778d066201c1
There are no files selected for viewing
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
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.