Skip to content

Fix two issues affecting webseeds #665

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 1 commit into from
Aug 2, 2024

Conversation

alanmcgovern
Copy link
Owner

  1. Ensure web requests request data in-order by fixing the piecepicker
    to correctly use 'CanRequestMorePieces'

  2. Fix a bug in the handling of padding files. A request for some data
    from a webseed needs to take padding files into account in all cases.
    A request can begin or end inside padding, it can also begin/end in
    regular files while optionally crossing one stretch of padding. This
    means the existing logic to insert synethic requests to the padding
    file are broken in a number of cases.

Copy link
Contributor

@borigas borigas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this. I appreciate that you want to fix the root causes.

I don't know the details of the library enough to offer a great review, but I did notice a possible bug.

@alanmcgovern alanmcgovern force-pushed the fix-webseed-handling-of-padding branch from 4a8d703 to 5f06455 Compare August 2, 2024 18:28
@alanmcgovern alanmcgovern marked this pull request as ready for review August 2, 2024 18:31
1) Ensure web requests request data in-order by fixing the piecepicker
   to correctly use 'CanRequestMorePieces'

2) Fix a bug in the handling of padding files. A request for some data
   from a webseed needs to take padding files into account in all cases.
   A request can begin or end inside padding, it can also begin/end in
   regular files while optionally crossing one stretch of padding. This
   means the existing logic to insert synethic requests to the padding
   file are broken in a number of cases.
@alanmcgovern alanmcgovern force-pushed the fix-webseed-handling-of-padding branch from 6ff5843 to 3fbf9be Compare August 2, 2024 22:23
@alanmcgovern alanmcgovern merged commit c93c385 into master Aug 2, 2024
0 of 2 checks passed
@alanmcgovern alanmcgovern deleted the fix-webseed-handling-of-padding branch August 2, 2024 22:24
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