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

[Bug] Serving files doesnt support resume/multi connection #823

Open
miaadp opened this issue Dec 15, 2024 · 0 comments
Open

[Bug] Serving files doesnt support resume/multi connection #823

miaadp opened this issue Dec 15, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@miaadp
Copy link

miaadp commented Dec 15, 2024

Describe the bug

When serving a file through --serve , The links can not be resumed or use multi connections although it does support range header(which failed)
If you send a request with Range: bytes=0-999999 header, its download less then 1000000 bytes and curl shown this error : transfer closed with 475712 bytes remaining to read0

You can increase or change the range specified in range header, but the result would be same if range is partial and not full file.

To Reproduce

1- Run a server with --serve command
2- Try to download a file from it
3- stop download after few mB
4- try to resume download
or
2- Send a request with range header and see the result length

Expected behavior

When i send a Range: bytes=0-999999 header with my request, I expect to receive bytes from 0 to 999999 which is 1000000 bytes.

Version

Version: 0.18.3
Commit: 3cac28d
Date: 2024-11-29T08:24:07Z

go1.21.13 linux/amd64

Which OS are you running tdl on?

Linux

Additional context

No response

@miaadp miaadp added the bug Something isn't working label Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants