]> git.kaiwu.me - nginx.git/commit
HTTP/2: merge upstream Priority header for proxied requests
authorAndrew Clayton <a.clayton@nginx.com>
Tue, 22 Sep 2026 00:53:10 +0000 (01:53 +0100)
committerAndrew Clayton <a.clayton@nginx.com>
Mon, 28 Sep 2026 21:01:20 +0000 (22:01 +0100)
commit4f21c3ddb8953210c413d3689bd21ed2fd994172
treee8654a36f36b75e50a129eb48babf0905f19d7df
parent4d147459db07ff57888f8323b5addb0deafd234c
HTTP/2: merge upstream Priority header for proxied requests

When nginx proxies a request over HTTP/2 and the upstream returns a
Priority response header, record it as the stream's server priority and
recompute the effective priority by merging it with the client's value
(RFC 9218, Section 8): a parameter present in the response overrides the
client's, a parameter absent leaves it unchanged.  The client and server
inputs are kept separate so a later client PRIORITY_UPDATE does not
discard the server hint.

The merge affects only how this hop schedules the stream; the Priority
header forwarded to the client is left unchanged, so
$upstream_http_priority continues to report what the origin sent.

Assisted-by: opencode:claude-opus-4.8
src/http/ngx_http_upstream.c