Skip to content

Conversation

wbpcode
Copy link
Member

@wbpcode wbpcode commented Oct 18, 2025

Commit Message: fix startup crash
Additional Description:

Fix #startup that introduced at #41079

We should never refer the Http::Headers::get() at global variable because the construct will be called before main() and the initialization of the Http::PrefixValue.

If we want to make a header with custom prefix to be inlined headers, we can only do it in the header_map.h with a macro. But it's not suggested anyway. We have too much inline headers now. I think we should gradually make some uncommonly used headers as normal headers.

Risk Level: low.
Testing: n/a.
Docs Changes: n/a.
Release Notes: added.
Platform Specific Features: n/a.

Signed-off-by: wbpcode <[email protected]>
Signed-off-by: wbpcode <[email protected]>
Signed-off-by: WangBaiping <[email protected]>
@wbpcode
Copy link
Member Author

wbpcode commented Oct 18, 2025

/retest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Envoy 1.36.1 crashes at startup due to header_prefix

2 participants