Skip to content

dnsdist: Prevent allocations in two corner cases #11531

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

Merged
merged 2 commits into from
Apr 14, 2022

Conversation

rgacogne
Copy link
Member

Short description

  • Avoid a reallocation if the initial allocation of the proxy header is too small to host the remaining content
  • When syslog logging is enabled, we do not need to allocate two strings with the same content to log to syslog and stdout

Checklist

I have:

  • read the CONTRIBUTING.md document
  • compiled this code
  • tested this code
  • included documentation (including possible behaviour changes)
  • documented the code
  • added or modified regression test(s)
  • added or modified unit test(s)

@rgacogne rgacogne merged commit 4565c44 into PowerDNS:master Apr 14, 2022
@rgacogne rgacogne deleted the ddist-small-improvements branch April 14, 2022 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants