src/bin/download-speed.rs: h2 download speedtest for our server

I get about 30MB/s (much too slow)
This commit is contained in:
Dietmar Maurer
2019-06-29 13:43:10 +02:00
parent a2b29b68d4
commit 17243003b3
3 changed files with 103 additions and 1 deletions

View File

@ -500,6 +500,13 @@ impl BackupReader {
self.h2.download(path, Some(param), output)
}
pub fn speedtest<W: Write>(
&self,
output: W,
) -> impl Future<Item=W, Error=Error> {
self.h2.download("speedtest", None, output)
}
pub fn download_chunk<W: Write>(
&self,
digest: &[u8; 32],