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

Retain TC bit if original message was already marked truncated #1171

Merged
merged 1 commit into from
Oct 14, 2020

Conversation

chrisohaver
Copy link
Contributor

Retain TC bit if original message was already marked truncated.

Fixes coredns/coredns#4183

This could alternately be fixed in coredns/coredns, although I can't think how reverting the TC bit would be desirable in any scenario, hence suggesting the fix upstream here.

Signed-off-by: Chris O'Haver cohaver@infoblox.com

Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
@codecov-io
Copy link

codecov-io commented Oct 13, 2020

Codecov Report

Merging #1171 into master will decrease coverage by 0.05%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1171      +/-   ##
==========================================
- Coverage   55.17%   55.11%   -0.06%     
==========================================
  Files          42       42              
  Lines        9581     9581              
==========================================
- Hits         5286     5281       -5     
- Misses       3271     3275       +4     
- Partials     1024     1025       +1     
Impacted Files Coverage Δ
msg_truncate.go 76.92% <100.00%> (ø)
msg.go 73.80% <0.00%> (-0.77%) ⬇️
server.go 68.58% <0.00%> (-0.31%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update eaab7b7...441a009. Read the comment docs.

Copy link
Collaborator

@tmthrgd tmthrgd left a comment

Choose a reason for hiding this comment

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

This seems reasonable and likely to solve real world bugs. LGTM.

@miekg miekg merged commit 5579226 into miekg:master Oct 14, 2020
miekg added a commit that referenced this pull request Oct 14, 2020
Follow up after #1171, update the docs about TC and use the MinMsgSize
constant for 512 in the code.

Signed-off-by: Miek Gieben <miek@miek.nl>
@miekg miekg mentioned this pull request Oct 14, 2020
miekg added a commit that referenced this pull request Oct 14, 2020
Follow up after #1171, update the docs about TC and use the MinMsgSize
constant for 512 in the code.

Signed-off-by: Miek Gieben <miek@miek.nl>
aanm pushed a commit to cilium/dns that referenced this pull request Jul 29, 2022
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
aanm pushed a commit to cilium/dns that referenced this pull request Jul 29, 2022
Follow up after miekg#1171, update the docs about TC and use the MinMsgSize
constant for 512 in the code.

Signed-off-by: Miek Gieben <miek@miek.nl>
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.

forward plugin issues with truncated responses without force_tcp or prefer_udp config
4 participants