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

In proxy mode, seed and peer generate different taskids with range bytes=xx- http request #3119

Open
GuoHaiqing opened this issue Mar 13, 2024 · 0 comments
Assignees
Labels

Comments

@GuoHaiqing
Copy link

Bug report:

When client downloads new file with bytes=xxx- header in proxy mode, seed and peer will generate different taskids. Because there are different range fields in urlMeta. Then peer will failed in SyncPieceTasks with seed, which will lead to downloading from source.

The range in peer urlMeta is xxx- here.
image

But scheduler parses range with MaxInt64 as default size. The range here will be xxx-xxx
image
image
image

Expected behavior:

Seed and peer should generate the same taskid with bytes=xxx- http head and peer downloads file from seed.

How to reproduce it:

Download file with range bytes=xxx- in header.

Environment:

  • Dragonfly version: v2.1.6
  • OS:
  • Kernel (e.g. uname -a):
  • Others:
@GuoHaiqing GuoHaiqing added the bug label Mar 13, 2024
@jim3ma jim3ma self-assigned this Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants