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 EDNS middleware bugs #355

Merged
merged 1 commit into from
Oct 3, 2024
Merged

Fix EDNS middleware bugs #355

merged 1 commit into from
Oct 3, 2024

Conversation

ximon18
Copy link
Member

@ximon18 ximon18 commented Jul 18, 2024

Various EDNS middleware fixes and improved Stelline test:

  • Reply with FORMERR if an OPT RR cannot be parsed.
  • Don't reply with FORMERR if an edns-tcp-keepalive option is received via UDP, instead ignore it per RFC 7828 3.2.1.
  • Only reserve space for an edns-tcp-keepalive option for TCP requests, not UDP requests.
  • Always reserve space for an OPT RR in the response for any request that has an OPT RR, not just TCP requests.
  • Disable TCP client retries in Stelline server tests otherwise a connection abort causes a retry which violates the test expectation.
  • Fixes a bug in Stelline where it fails to catch that an expected connection termination actually didn't happen.

@ximon18 ximon18 requested a review from a team July 18, 2024 11:06
ximon18 added a commit that referenced this pull request Aug 8, 2024
@ximon18 ximon18 changed the base branch from xfr to stelline-server-testing-changes August 8, 2024 13:45
@ximon18 ximon18 force-pushed the fix-edns-middleware branch from 283c7b6 to cf027d2 Compare August 8, 2024 14:22
@ximon18 ximon18 changed the base branch from stelline-server-testing-changes to main September 9, 2024 18:23
- Reply with FORMERR if an OPT RR cannot be parsed.
- Don't reply with FORMERR if an edns-tcp-keepalive option is received via UDP, instead ignore it per RFC 7828 3.2.1.
- Only reserve space for an edns-tcp-keepalive option for TCP requests, not UDP requests.
- Always reserve space for an OPT RR in the response for any request that has an OPT RR, not just TCP requests.
- Disable TCP client retries in Stelline server tests otherwise a connection abort causes a retry which violates the test expectation.
@ximon18 ximon18 merged commit a7e37e7 into main Oct 3, 2024
26 checks passed
@ximon18 ximon18 deleted the fix-edns-middleware branch October 3, 2024 14:22
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.

2 participants