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

Possible to resume downloads after Network Disconnect? #267

Closed
blackops786187 opened this issue Sep 21, 2023 · 5 comments
Closed

Possible to resume downloads after Network Disconnect? #267

blackops786187 opened this issue Sep 21, 2023 · 5 comments

Comments

@blackops786187
Copy link

Problem

Thanks for creating this simple tool. It has made sharing large files between people very simple.

As the title suggests, is it possible to resume a download after the server network has disconnected and the HTTPS connection has terminated. On chrome, when the disconnect happens, the browser marks the download as failed and clicking on resume doesn't seem to restart it from where it left off. Is this the normal behaviour for HTTP ? With SFTP, it has the capability to resume even after a complete termination of connection although i would like to use HTTP as the protocol since the speed doesnt suffer when the RTT is high and the file transfer is happening over the WAN

Environment:

  • Dufs version: 0.36.0
  • Browser: Version 116.0.5845.188
  • OS Info: Windows 10 Pro 22H2 on Latest Patch as of 21/09/2023
@sigoden
Copy link
Owner

sigoden commented Sep 23, 2023

DUFS already supports resumable downloads, you can test it with:

curl --range 100-1099 http://localhost:5000/bigfile

@sigoden sigoden closed this as completed Sep 23, 2023
@blackops786187
Copy link
Author

blackops786187 commented Sep 23, 2023

Yes. I’m aware of that. Just wondering why chrome isnt able to resume it despite dufs supporting it. I can’t really ask a user to use curl to resume a download

@sigoden
Copy link
Owner

sigoden commented Sep 24, 2023

Everything is working fine in Chrome as well

dufs

@blackops786187
Copy link
Author

blackops786187 commented Oct 26, 2023

Hi,

I belive i've located the issue behind my downloading failing to resume. It seems like using https whilst using untrusted certs prevents the resume of the download since it doesn't implicity trust the connection. I have rectified this although i am now seeing a different issue

If i use the basic auth switch, start the download and then cut the network off for a period of time, then reconnect it and attempt to resume the download, the chrome download manager flags the downloadd as failed and requiring authorisation despite not closing the browser. This subsequently deletes the partial crdownload file preventing the resumation of it,

I would have assumed that basic auth stays cached whilst the browser is open so not sure whats going on here.
Of course this issue doesn't manifest when i dont use any auth mechanism. I can record a video if it helps

@sigoden
Copy link
Owner

sigoden commented Oct 26, 2023

Resume download works on Basic Auth, fails on Digest Auth.

dufs can't do anything about it.

Note: The default auth method of Dufs is digest

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

No branches or pull requests

2 participants