]> git.proxmox.com Git - proxmox-backup.git/commitdiff
server: set http2 max frame size
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 10 Sep 2020 08:36:33 +0000 (10:36 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 10 Sep 2020 10:43:51 +0000 (12:43 +0200)
else we get the default of 16k, which is quite low for our use case.
this improves the TLS upload benchmark speed by about 30-40% for me.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Cargo.toml
src/api2/backup.rs
src/api2/reader.rs

index 1e32d26d5cd179d02caa7116d8f010c61f5d57d8..b962010f07c1d518a8434b9c72a5d5e1c8e1912a 100644 (file)
@@ -26,7 +26,7 @@ futures = "0.3"
 h2 = { version = "0.2", features = ["stream"] }
 handlebars = "3.0"
 http = "0.2"
-hyper = "0.13"
+hyper = "0.13.6"
 lazy_static = "1.4"
 libc = "0.2"
 log = "0.4"
index 59f2792b84b8b8359ebace1d95b7bf498251866e..c00f9be8e86c09ec3b19f1e9c0d07f064653d9b4 100644 (file)
@@ -159,6 +159,7 @@ async move {
                 let window_size = 32*1024*1024; // max = (1 << 31) - 2
                 http.http2_initial_stream_window_size(window_size);
                 http.http2_initial_connection_window_size(window_size);
+                http.http2_max_frame_size(4*1024*1024);
 
                 http.serve_connection(conn, service)
                     .map_err(Error::from)
index 83ae616ac9e4cbc091bc7628c3a64f76206cd9f0..cf82af0610b27a0bfa3e427e04b0b3237be71c13 100644 (file)
@@ -121,6 +121,7 @@ fn upgrade_to_backup_reader_protocol(
                         let window_size = 32*1024*1024; // max = (1 << 31) - 2
                         http.http2_initial_stream_window_size(window_size);
                         http.http2_initial_connection_window_size(window_size);
+                        http.http2_max_frame_size(4*1024*1024);
 
                         http.serve_connection(conn, service)
                             .map_err(Error::from)