Skip to content
Snippets Groups Projects
Commit 8ef3f944 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

data_transfer: do not restart download from zero if possible

The protocol already supports start/end but it was never used.
This patch:
+ Open the incoming file in append mode (else it will restart)
+ Pass start=detectedOffset to the peer to restart the download
where we need.
+ Only remove the file if the file is EOF or cancelled by the
user to avoid to restart from 0.

GitLab: #788
Change-Id: I8eee635a076e668af226fd9ad7ba372f6adae3f6
parent f6f132b2
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment