Repository navigation
[2.4.x] mod_http2: Send HTTP/2 error codes in GOAWAY frames - #1156
Merged
Merged
Conversation
Merge r1939156 from trunk (GitHub PR apache#799, PR 70212). h2_session_shutdown() passed its reason, an APR or nghttp2 status, as the error code of the GOAWAY frame. A connection timeout was sent as 70007 (APR_TIMEUP), an inadequate TLS connection as 22 (APR_EINVAL). Give h2_session_shutdown() the HTTP/2 error code as a separate argument. Timeouts and graceful shutdowns send NO_ERROR, failures INTERNAL_ERROR and inadequate TLS parameters INADEQUATE_SECURITY. test_108_goaway.py: mark r1939156 as backported_in 2.4.72, so releases before 2.4.72 keep the expected failure.
arturobernalg
approved these changes
Dec 3, 2026
arturobernalg
left a comment
Member
There was a problem hiding this comment.
@erilor Thanks for the backport. I'll leave it open 24h in case another committer wants to weigh in, then merge
notroj
approved these changes
Dec 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of trunk r1939156 (#799), fixing PR 70212.
On 2.4.x, h2_session_shutdown() still sends its internal APR/nghttp2
status as the GOAWAY error code: an idle timeout goes out as 70007
(APR_TIMEUP) and an inadequate TLS connection as 22 (APR_EINVAL).
Clients and proxies that act on the error code treat a normal timeout
as a protocol error.
The trunk change applies cleanly to 2.4.x apart from
test_108_goaway.py, where this test_108_goaway.py:
marks r1939156 as backported_in="2.4.72", so older 2.4.x releases keep the expected failure.
@arturobernalg would you be able to take a look, since you authored the trunk change?
(see
SECURITY.mdandhttps://www.apache.org/security/#reporting-a-vulnerability).
APLOGNO()tag;numbers are assigned by a committer at merge time (see
docs/log-message-tags/README).changes-entries/*.txtfile is included,following the template in
README.CHANGES(not needed otherwise).test/modules/xxxdirectory matching themodules/xxxmodule source,or
test/modules/corefor core server changes. On Unix, verify thesepass locally with e.g.
make check-pytest PYTEST_DIRS=test/modules/xxx.