-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
inline http cookie header #17234
Comments
I think Dan actually fixed the delimiter issue (https://github.com/envoyproxy/envoy/blob/main/source/common/http/header_map_impl.cc#L437) but where I agree O(n) isn't good I suspect inlining cookies would break things for some users. it'd be nice to have a configurable bootstrap option for which headers to inline so folks could optimize on their own. |
FWIW when I wrote the custom inline header code I intended to eventually make it bootstrap configurable. It should be quite easy: Lines 350 to 362 in d3a9012
|
Then, after that, we will have three ways to define the inline header. |
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions. |
Commit Message: ensure that the inline cookie header will be folded correctly Additional Description: This PR is a supplement to #17330 and #14969 and will finally close #17234. This PR mainly did following works: update insertByKey to choose suitable delimiter for inline header. update parseCookie to avoid unnecessary iteration for parsing cookie value. Risk Level: Low. Testing: Add. Docs Changes: N/A. Release Notes: N/A. Signed-off-by: wbpcode <wbphub@live.com>
…roxy#17560) Commit Message: ensure that the inline cookie header will be folded correctly Additional Description: This PR is a supplement to envoyproxy#17330 and envoyproxy#14969 and will finally close envoyproxy#17234. This PR mainly did following works: update insertByKey to choose suitable delimiter for inline header. update parseCookie to avoid unnecessary iteration for parsing cookie value. Risk Level: Low. Testing: Add. Docs Changes: N/A. Release Notes: N/A. Signed-off-by: wbpcode <wbphub@live.com>
The current
cookie
is not be implemented as O(1) inline header which make the cookie-related operation very expensive.Perhaps we can set a special delimiter
;
for the cookie to make the cookie an inline header.The text was updated successfully, but these errors were encountered: