Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@yannickepstein
Copy link
Contributor

Forward information that a upstream response is truncated when rewriting
a CNAME. Otherwise, the cache plugin stores the truncated resonse,
making it impossible to receive the full response as a client via TCP.

1. Why is this pull request needed and what does it do?

Fixes #7276 rewrite cname: Incorrect handling of truncated upstream response when cache is enabled.

2. Which issues (if any) are related?

#7276 rewrite cname: Incorrect handling of truncated upstream response when cache is enabled.

3. Which documentation changes (if any) need to be made?

None.

4. Does this introduce a backward incompatible change or deprecation?

No.

Forward information that a upstream response is truncated when rewriting
a CNAME. Otherwise, the cache plugin stores the truncated resonse,
making it impossible to receive the full response as a client via TCP.

Signed-off-by: Yannick Epstein <[email protected]>
@yannickepstein yannickepstein force-pushed the fix-rewrite-cname-truncated-response branch from 832cedc to e8468cb Compare May 1, 2025 07:22
Copy link
Member

@chrisohaver chrisohaver left a comment

Choose a reason for hiding this comment

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

lgtm thanks!

@codecov
Copy link

codecov bot commented May 1, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 56.63%. Comparing base (93c57b6) to head (e8468cb).
Report is 1424 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7277      +/-   ##
==========================================
+ Coverage   55.70%   56.63%   +0.93%     
==========================================
  Files         224      270      +46     
  Lines       10016    17416    +7400     
==========================================
+ Hits         5579     9864    +4285     
- Misses       3978     6962    +2984     
- Partials      459      590     +131     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Collaborator

@greenpau greenpau left a comment

Choose a reason for hiding this comment

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

LGTM!

@greenpau greenpau merged commit 13da7f7 into coredns:master May 1, 2025
13 checks passed
@greenpau
Copy link
Collaborator

greenpau commented May 1, 2025

@yannickepstein , thank you for contributing!

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.

rewrite cname: Incorrect handling of truncated upstream response when cache is enabled

3 participants