Fixing an infinite loop when downloading patches over HTTP that use chunked encoding

pmeunier
Jun 28, 2023, 8:04 PM
533DMBZ6ZAKGDYU3QR4LUQZUQ5T5V6KNJM5DNUDPQDQ4B3KI3IWAC

Dependencies

  • [2] 7Z3KZV6G Retry HTTP downloads if we don't get a full patch
  • [3] LZOGKBJX new command `pijul client` for authenticating to a HTTP server
  • [4] VBMXB443 Retrying if the HTTP connection drops while reading the body
  • [5] IQ4FCHPZ HTTP connections: pooling + retry on error
  • [6] OIOMXESD Better error handling in HTTP
  • [7] CCLLB7OI Upgrading to Sanakirja 0.15 + version bump
  • [8] BVVMTOYW Proper renaming of changes downloaded over HTTP
  • [*] FBXYP7QM Forgot to add remote::http

Change contents

  • replacement in pijul/src/remote/http.rs at line 94
    [3.1193][2.66:93]()
    let mut size = res
    [3.1193]
    [2.93]
    let mut size: Option<usize> = res
  • replacement in pijul/src/remote/http.rs at line 98
    [2.209][2.209:286]()
    .unwrap_or("0")
    .parse::<usize>()
    .ok();
    [2.209]
    [3.897]
    .and_then(|x| x.parse().ok());