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

dnsdist: Log when a console message exceeds the maximum size #11543

Merged
merged 2 commits into from
Apr 29, 2022

Conversation

rgacogne
Copy link
Member

Short description

Otherwise one cannot know whether the server has closed the connection or sent a too large message.

Also wrap the console's socket descriptors in FDWrapper objects to make sure we do not forget to close them in the future, doing that manually is always brittle.

Closes #11488

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)

Otherwise one cannot know whether the server has closed the connection
or sent a too large message.
I don't see any case where that could happen but better wrap the
socket descriptors in FDWrapper objects so that we cannot forget to
close them if an exception is raised, for example.
@rgacogne rgacogne merged commit 5bf256b into PowerDNS:master Apr 29, 2022
@rgacogne rgacogne deleted the ddist-console-max-size-log branch April 29, 2022 06:16
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.

dnsdist: 1.5.1 response to "dnsdist -e 'grepq("")' | wc -l" always "4" after some time
2 participants