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

Add prefer_truncation to Message.to_wire(). #1023

Merged
merged 1 commit into from
Dec 20, 2023

Conversation

bwelling
Copy link
Collaborator

If a caller passes prefer_truncation=True, the message will be truncated if it would otherwise exceed the maximum length. If the truncation occurs before the additional section, the TC bit will be set.

This behavior matches what a name server would do when generating a response.

If a caller passes prefer_truncation=True, the message will be truncated
if it would otherwise exceed the maximum length.  If the truncation
occurs before the additional section, the TC bit will be set.

This behavior matches what a name server would do when generating a
response.
@rthalley rthalley merged commit 1fa7860 into rthalley:master Dec 20, 2023
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