Skip to content
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

fix(core): fix ngx.balancer.recreate_request does not refresh body bu… #13377

Merged
merged 3 commits into from
Sep 12, 2024

Conversation

oowl
Copy link
Member

@oowl oowl commented Jul 15, 2024

…ffer issue when ngx.req.set_body_data is used in balancer phase

backport Openresty upstream fix: openresty/lua-nginx-module#2334
issues context: openresty/lua-nginx-module#2333

Summary

Checklist

  • The Pull Request has tests
  • A changelog file has been created under changelog/unreleased/kong or skip-changelog label added on PR if changelog is unnecessary. README.md
  • There is a user-facing docs PR against https://github.com/Kong/docs.konghq.com - PUT DOCS PR HERE

Issue reference

AG-12

@github-actions github-actions bot added build/bazel cherry-pick kong-ee schedule this PR for cherry-picking to kong/kong-ee labels Jul 15, 2024
@chronolaw
Copy link
Contributor

Need a change log entry?

@oowl oowl requested a review from chronolaw July 24, 2024 09:22
@oowl oowl force-pushed the fix/recreate-request-work-for-body-patch branch from dd8494e to 241ce9d Compare July 24, 2024 09:22
@fffonion
Copy link
Contributor

hold merge after 3.8 is released for safety of summit

@fffonion fffonion marked this pull request as draft July 24, 2024 10:06
@fffonion
Copy link
Contributor

converting this to draft because there's no do not merge label anymore.

Copy link
Contributor

@chobits chobits left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The bugfix patch is referenced from nginx correct logic for setting upstream body bufs: https://github.com/nginx/nginx/blob/master/src/http/ngx_http_upstream.c#L631

@fffonion fffonion marked this pull request as ready for review September 12, 2024 09:54
@fffonion fffonion force-pushed the fix/recreate-request-work-for-body-patch branch from 241ce9d to 0660ae9 Compare September 12, 2024 09:54
@fffonion fffonion merged commit 6200b1a into master Sep 12, 2024
27 checks passed
@fffonion fffonion deleted the fix/recreate-request-work-for-body-patch branch September 12, 2024 10:31
@team-gateway-bot
Copy link
Collaborator

Successfully created cherry-pick PR for master:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build/bazel cherry-pick kong-ee schedule this PR for cherry-picking to kong/kong-ee size/L skip-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants