[GH-ISSUE #267] Possible to resume downloads after Network Disconnect? #140

Closed
opened 2026-04-08 16:50:38 +03:00 by zhus · 5 comments
Owner

Originally created by @blackops786187 on GitHub (Sep 21, 2023).
Original GitHub issue: https://github.com/sigoden/dufs/issues/267

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
Originally created by @blackops786187 on GitHub (Sep 21, 2023). Original GitHub issue: https://github.com/sigoden/dufs/issues/267 **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
zhus closed this issue 2026-04-08 16:50:38 +03:00
Author
Owner

@sigoden commented on GitHub (Sep 23, 2023):

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

curl --range 100-1099 http://localhost:5000/bigfile
<!-- gh-comment-id:1732169563 --> @sigoden commented on GitHub (Sep 23, 2023): DUFS already supports resumable downloads, you can test it with: ``` curl --range 100-1099 http://localhost:5000/bigfile ```
Author
Owner

@blackops786187 commented on GitHub (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

<!-- gh-comment-id:1732393142 --> @blackops786187 commented on GitHub (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
Author
Owner

@sigoden commented on GitHub (Sep 24, 2023):

Everything is working fine in Chrome as well

dufs

<!-- gh-comment-id:1732441347 --> @sigoden commented on GitHub (Sep 24, 2023): Everything is working fine in Chrome as well ![dufs](https://github.com/sigoden/dufs/assets/4012553/e649f7a9-926b-4821-bc92-48a2abeed5de)
Author
Owner

@blackops786187 commented on GitHub (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

<!-- gh-comment-id:1781360230 --> @blackops786187 commented on GitHub (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
Author
Owner

@sigoden commented on GitHub (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

<!-- gh-comment-id:1781376194 --> @sigoden commented on GitHub (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 in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#140