]> git.proxmox.com Git - proxmox-backup.git/commitdiff
use latest hyper master branch to include socket buffer size fix
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 2 Jul 2019 05:09:46 +0000 (07:09 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 2 Jul 2019 05:09:46 +0000 (07:09 +0200)
Cargo.toml
src/client/http_client.rs

index f01f2e15554b4b55cf04a426cc85003cd501fc0c..54e526fe73ab793f03e05363999a5d072474834f 100644 (file)
@@ -57,3 +57,5 @@ valgrind = ["valgrind_request"]
 
 [replace]
 "zstd-sys:1.4.10" = { path = "zstd-sys" }
+# include socket buffer size fix
+"hyper:0.12.31"  = { git = "https://github.com/hyperium/hyper.git" }
index 3e5750e273c0f72f9edb8efc3fd4c244d5a0c7d0..d4903c0cd751531d52f5ec89f0f751150da09e3d 100644 (file)
@@ -163,6 +163,7 @@ impl HttpClient {
         let tlsconnector = builder.build().unwrap();
         let mut httpc = hyper::client::HttpConnector::new(1);
         httpc.set_nodelay(true); // important for h2 download performance!
+        httpc.set_recv_buf_size(Some(1024*1024)); //important for h2 download performance!
         httpc.enforce_http(false); // we want https...
         let mut https = hyper_tls::HttpsConnector::from((httpc, tlsconnector));
         https.https_only(true); // force it!