Recreate the patch file instead of only truncating it, on failed HTTP downloads

[?]
Mar 8, 2021, 9:06 PM
R4RRU65V3ERJBPKTBBZDOQ4PE3F7UPYMVUBPFPF5VVTFIWTWTJMAC

Dependencies

  • [2] 4CEHBW7Y Truncate files when restarting a HTTP transfer
  • [3] IQ4FCHPZ HTTP connections: pooling + retry on error
  • [4] TPEH2XNB 1.0.0-alpha.28, with Tokio 1.0
  • [*] FBXYP7QM Forgot to add remote::http
  • [*] VBMXB443 Retrying if the HTTP connection drops while reading the body

Change contents

  • edit in pijul/src/remote/http.rs at line 37
    [2.73]
    [3.1132]
    f = std::fs::File::create(&path_)?;
  • edit in pijul/src/remote/http.rs at line 39
    [3.1213][2.74:101]()
    f.set_len(0)?;
  • edit in pijul/src/remote/http.rs at line 55
    [7.593]
    [3.1262]
    f = std::fs::File::create(&path_)?;