* fix(http): send deferred HTTP/2 100 Continue Backport upstream Expect handling onto Hyper 1.12.0 and cover the transport handshake and rejection boundaries. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * test(http): use uppercase Expect token in fixture Preserve case-insensitive Expect coverage without triggering the spelling guard. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * perf(http): compact deferred Continue body state Preserve the existing body size bound and H2 frame path while removing redundant state from the temporary Expect allocation. Cover spawned readers, size hints, trailers, and EOF. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * refactor(http): align Continue backport with upstream Remove the local body-layout micro-optimization so the runtime patch exactly matches upstream Hyper PR #4217 while retaining RustFS regression coverage. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * fix(storage): keep authorization tag lookup in infra Move the store-backed ExistingObjectTag lookup behind the authorization core and keep legacy error conversion at the FS interface boundary. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * fix(tests): align CI fixtures with current contracts Distinguish AddUser primary and secondary admin gates, parse SigV4 civil time in UTC, and provide the required Object Lock snapshot for restore metadata copies. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> --------- Co-authored-by: heihutu <heihutu@gmail.com> Co-authored-by: zhi22915 <qiuzgang@gmail.com> Co-authored-by: houseme <4829346+houseme@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
1.5 KiB
Hyper HTTP/2 Expect support
This directory contains the published Hyper 1.12.0 source with the four-file runtime backport of hyperium/hyper#4217, commit 6d363f774910ac069a830783c23e409c59371fb1. The released source corresponds to upstream commit 7f67699ce32d717081deb7018b4da7d679277ac0 and crates.io SHA-256 2c3e324da4c95177d6291d4c8730197c0d1822f8a9766814a4a44fa5ab797c9c.
The patch sends one HTTP/2 100 Continue response when the service first waits for request body data. A final response without reading the body takes precedence. HTTP/1 behavior is preserved. Non-Expect traffic uses the existing path without a new allocation. No S3 handler or storage behavior is changed.
The upstream PR is not yet released. Its branch is based on Hyper 1.11.1, so pinning that branch would discard newer HTTP/1 framing fixes. The workspace Cargo patch retains 1.12.0 and applies uniformly to transitive Hyper users; this also affects internode and outbound clients, although the new behavior is server-side only.
Regression coverage lives in rustfs/tests/http_expect_continue.rs and runs as a normal RustFS integration test. Remove the Cargo patch and this directory when a released Hyper includes equivalent support; keep the regression tests. See RustFS #9460.
The upstream MIT license is retained in LICENSE. Apart from this provenance document, upstream metadata and source files are preserved to keep the backport directly auditable.