feat(http): Enable dynamic window adjustment (#1549)

This commit is contained in:
houseme
2026-01-19 09:53:17 +08:00
committed by GitHub
parent a9f499282c
commit 99be71e4c2
3 changed files with 53 additions and 53 deletions
Generated
+51 -52
View File
@@ -511,7 +511,7 @@ dependencies = [
"nom 7.1.3",
"num-traits",
"rusticata-macros",
"thiserror 2.0.17",
"thiserror 2.0.18",
"time",
]
@@ -1433,7 +1433,7 @@ dependencies = [
"semver",
"serde",
"serde_json",
"thiserror 2.0.17",
"thiserror 2.0.18",
]
[[package]]
@@ -3555,14 +3555,13 @@ checksum = "64cd1e32ddd350061ae6edb1b082d7c54915b5c672c389143b9a63403a109f24"
[[package]]
name = "filetime"
version = "0.2.26"
version = "0.2.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bc0505cd1b6fa6580283f6bdf70a73fcf4aba1184038c90902b92b3dd0df63ed"
checksum = "f98844151eee8917efc50bd9e8318cb963ae8b297431495d3f758616ea5c57db"
dependencies = [
"cfg-if",
"libc",
"libredox",
"windows-sys 0.60.2",
]
[[package]]
@@ -3628,7 +3627,7 @@ dependencies = [
"serde",
"serde_derive",
"serde_json",
"thiserror 2.0.17",
"thiserror 2.0.18",
"toml",
"tracing",
"tracing-subscriber",
@@ -3933,7 +3932,7 @@ dependencies = [
"rustls-pki-types",
"serde",
"serde_json",
"thiserror 2.0.17",
"thiserror 2.0.18",
"time",
"tokio",
]
@@ -3954,7 +3953,7 @@ dependencies = [
"rand 0.9.2",
"serde",
"serde_json",
"thiserror 2.0.17",
"thiserror 2.0.18",
"tokio",
]
@@ -3983,7 +3982,7 @@ dependencies = [
"rustc_version",
"serde",
"serde_json",
"thiserror 2.0.17",
"thiserror 2.0.18",
"tokio",
"tokio-stream",
"tonic",
@@ -4096,7 +4095,7 @@ dependencies = [
"serde_json",
"serde_with",
"sha2 0.10.9",
"thiserror 2.0.17",
"thiserror 2.0.18",
"tokio",
"tokio-stream",
"tonic",
@@ -4129,7 +4128,7 @@ dependencies = [
"serde",
"serde_json",
"serde_with",
"thiserror 2.0.17",
"thiserror 2.0.18",
"time",
"url",
]
@@ -5211,7 +5210,7 @@ dependencies = [
"once_cell",
"serde",
"sha2 0.10.9",
"thiserror 2.0.17",
"thiserror 2.0.18",
"uuid",
]
@@ -5240,7 +5239,7 @@ dependencies = [
"rustls-pemfile",
"slog",
"slog-stdlog",
"thiserror 2.0.17",
"thiserror 2.0.18",
"tokio",
"tokio-rustls",
"tokio-util",
@@ -5896,7 +5895,7 @@ dependencies = [
"itertools 0.14.0",
"parking_lot",
"percent-encoding",
"thiserror 2.0.17",
"thiserror 2.0.18",
"tokio",
"tracing",
"url",
@@ -5954,7 +5953,7 @@ dependencies = [
"futures-sink",
"js-sys",
"pin-project-lite",
"thiserror 2.0.17",
"thiserror 2.0.18",
"tracing",
]
@@ -5999,7 +5998,7 @@ dependencies = [
"opentelemetry_sdk",
"prost 0.14.3",
"reqwest",
"thiserror 2.0.17",
"thiserror 2.0.18",
"tracing",
]
@@ -6045,7 +6044,7 @@ dependencies = [
"opentelemetry",
"percent-encoding",
"rand 0.9.2",
"thiserror 2.0.17",
"thiserror 2.0.18",
"tokio",
"tokio-stream",
]
@@ -6637,7 +6636,7 @@ dependencies = [
"spin 0.10.0",
"symbolic-demangle",
"tempfile",
"thiserror 2.0.17",
"thiserror 2.0.18",
]
[[package]]
@@ -6735,7 +6734,7 @@ dependencies = [
"lazy_static",
"memchr",
"parking_lot",
"thiserror 2.0.17",
"thiserror 2.0.18",
]
[[package]]
@@ -6958,7 +6957,7 @@ dependencies = [
"rustc-hash",
"rustls",
"socket2",
"thiserror 2.0.17",
"thiserror 2.0.18",
"tokio",
"tracing",
"web-time",
@@ -6979,7 +6978,7 @@ dependencies = [
"rustls",
"rustls-pki-types",
"slab",
"thiserror 2.0.17",
"thiserror 2.0.18",
"tinyvec",
"tracing",
"web-time",
@@ -7177,7 +7176,7 @@ checksum = "a4e608c6638b9c18977b00b475ac1f28d14e84b27d8d42f70e0bf1e3dec127ac"
dependencies = [
"getrandom 0.2.17",
"libredox",
"thiserror 2.0.17",
"thiserror 2.0.18",
]
[[package]]
@@ -7354,7 +7353,7 @@ dependencies = [
"schemars 1.2.0",
"serde",
"serde_json",
"thiserror 2.0.17",
"thiserror 2.0.18",
"tokio",
"tokio-util",
"tracing",
@@ -7425,7 +7424,7 @@ dependencies = [
"rustls-native-certs",
"rustls-pemfile",
"rustls-webpki 0.102.8",
"thiserror 2.0.17",
"thiserror 2.0.18",
"tokio",
"tokio-rustls",
"tokio-stream",
@@ -7518,7 +7517,7 @@ dependencies = [
"flurry",
"log",
"serde",
"thiserror 2.0.17",
"thiserror 2.0.18",
"tokio",
"tokio-util",
]
@@ -7668,7 +7667,7 @@ dependencies = [
"ssh-key",
"subtle",
"sysinfo",
"thiserror 2.0.17",
"thiserror 2.0.18",
"tikv-jemalloc-ctl",
"tikv-jemallocator",
"time",
@@ -7708,7 +7707,7 @@ dependencies = [
"serde_json",
"serial_test",
"tempfile",
"thiserror 2.0.17",
"thiserror 2.0.18",
"time",
"tokio",
"tokio-util",
@@ -7745,7 +7744,7 @@ dependencies = [
"rustfs-targets",
"serde",
"serde_json",
"thiserror 2.0.17",
"thiserror 2.0.18",
"tokio",
"tracing",
"url",
@@ -7815,7 +7814,7 @@ dependencies = [
"serde_json",
"sha2 0.11.0-rc.3",
"test-case",
"thiserror 2.0.17",
"thiserror 2.0.18",
"time",
]
@@ -7889,7 +7888,7 @@ dependencies = [
"smallvec",
"temp-env",
"tempfile",
"thiserror 2.0.17",
"thiserror 2.0.18",
"time",
"tokio",
"tokio-util",
@@ -7917,7 +7916,7 @@ dependencies = [
"rustfs-utils",
"s3s",
"serde",
"thiserror 2.0.17",
"thiserror 2.0.18",
"time",
"tokio",
"tracing",
@@ -7944,7 +7943,7 @@ dependencies = [
"rustfs-utils",
"serde",
"serde_json",
"thiserror 2.0.17",
"thiserror 2.0.18",
"time",
"tokio",
"tokio-util",
@@ -7968,7 +7967,7 @@ dependencies = [
"serde_json",
"sha2 0.11.0-rc.3",
"tempfile",
"thiserror 2.0.17",
"thiserror 2.0.18",
"tokio",
"tracing",
"url",
@@ -7990,7 +7989,7 @@ dependencies = [
"serde_json",
"smallvec",
"smartstring",
"thiserror 2.0.17",
"thiserror 2.0.18",
"tokio",
"tonic",
"tracing",
@@ -8048,7 +8047,7 @@ dependencies = [
"serde",
"serde_json",
"starshard",
"thiserror 2.0.17",
"thiserror 2.0.18",
"tokio",
"tracing",
"tracing-subscriber",
@@ -8075,7 +8074,7 @@ dependencies = [
"serde",
"smallvec",
"sysinfo",
"thiserror 2.0.17",
"thiserror 2.0.18",
"tokio",
"tracing",
"tracing-appender",
@@ -8106,7 +8105,7 @@ dependencies = [
"strum",
"temp-env",
"test-case",
"thiserror 2.0.17",
"thiserror 2.0.18",
"time",
"tokio",
"tracing",
@@ -8148,7 +8147,7 @@ dependencies = [
"serde_json",
"sha1 0.11.0-rc.3",
"sha2 0.11.0-rc.3",
"thiserror 2.0.17",
"thiserror 2.0.18",
"tokio",
"tokio-test",
"tokio-util",
@@ -8224,7 +8223,7 @@ dependencies = [
"serde",
"serde_json",
"snap",
"thiserror 2.0.17",
"thiserror 2.0.18",
"tokio",
"tracing",
"url",
@@ -8270,7 +8269,7 @@ dependencies = [
"snap",
"sysinfo",
"tempfile",
"thiserror 2.0.17",
"thiserror 2.0.18",
"tokio",
"tracing",
"transform-stream",
@@ -8488,7 +8487,7 @@ dependencies = [
"std-next",
"subtle",
"sync_wrapper",
"thiserror 2.0.17",
"thiserror 2.0.18",
"time",
"tokio",
"tower",
@@ -8982,7 +8981,7 @@ checksum = "297f631f50729c8c99b84667867963997ec0b50f32b2a7dbcab828ef0541e8bb"
dependencies = [
"num-bigint",
"num-traits",
"thiserror 2.0.17",
"thiserror 2.0.18",
"time",
]
@@ -9303,7 +9302,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "04082e93ed1a06debd9148c928234b46d2cf260bc65f44e1d1d3fa594c5beebc"
dependencies = [
"simdutf8",
"thiserror 2.0.17",
"thiserror 2.0.18",
]
[[package]]
@@ -9365,7 +9364,7 @@ dependencies = [
"pin-project",
"rustls",
"rustls-pki-types",
"thiserror 2.0.17",
"thiserror 2.0.18",
"tokio",
"tokio-rustls",
]
@@ -9642,11 +9641,11 @@ dependencies = [
[[package]]
name = "thiserror"
version = "2.0.17"
version = "2.0.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f63587ca0f12b72a0600bcba1d40081f830876000bb46dd2337a3051618f4fc8"
checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4"
dependencies = [
"thiserror-impl 2.0.17",
"thiserror-impl 2.0.18",
]
[[package]]
@@ -9662,9 +9661,9 @@ dependencies = [
[[package]]
name = "thiserror-impl"
version = "2.0.17"
version = "2.0.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3ff15c8ecd7de3849db632e14d18d2571fa09dfc5ed93479bc4485c7a517c913"
checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5"
dependencies = [
"proc-macro2",
"quote",
@@ -10079,7 +10078,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "786d480bce6247ab75f005b14ae1624ad978d3029d9113f0a22fa1ac773faeaf"
dependencies = [
"crossbeam-channel",
"thiserror 2.0.17",
"thiserror 2.0.18",
"time",
"tracing-subscriber",
]
@@ -11029,7 +11028,7 @@ dependencies = [
"nom 7.1.3",
"oid-registry",
"rusticata-macros",
"thiserror 2.0.17",
"thiserror 2.0.18",
"time",
]
@@ -11047,7 +11046,7 @@ dependencies = [
"oid-registry",
"ring",
"rusticata-macros",
"thiserror 2.0.17",
"thiserror 2.0.18",
"time",
]
+1 -1
View File
@@ -239,7 +239,7 @@ sysinfo = "0.37.2"
temp-env = "0.3.6"
tempfile = "3.24.0"
test-case = "3.3.1"
thiserror = "2.0.17"
thiserror = "2.0.18"
tracing = { version = "0.1.44" }
tracing-appender = "0.2.4"
tracing-error = "0.2.1"
+1
View File
@@ -280,6 +280,7 @@ pub async fn start_http_server(
conn_builder
.http2()
.timer(TokioTimer::new())
.adaptive_window(true)
.initial_stream_window_size(H2_INITIAL_STREAM_WINDOW_SIZE)
.initial_connection_window_size(H2_INITIAL_CONN_WINDOW_SIZE)
.max_frame_size(H2_MAX_FRAME_SIZE)