Skip to content
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

Add validation http requests #668

Merged
merged 2 commits into from
Aug 4, 2024
Merged

Conversation

alanmcgovern
Copy link
Owner

Tweak of the #639 PR - except raise an exception instead!

borigas and others added 2 commits August 3, 2024 18:08
Use the original logic to detect when non-sequential requests are made,
and raise an error instead of handling it gracefully.

By default blocks are effectively random, and this is a bad access
pattern for many web servers. The piece picker should be requesting a
bunch of sequential blocks, which should be converted into a single
large http request, which (in turn) should be better for the http server
and also the library.
@alanmcgovern alanmcgovern merged commit ce89ff6 into master Aug 4, 2024
0 of 2 checks passed
@alanmcgovern alanmcgovern deleted the add-validation-http-requests branch August 4, 2024 09:51
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.

2 participants