Skip to content

Test DNS TCP split length reads - #13561

Closed
bneradt wants to merge 1 commit into
apache:masterfrom
bneradt:test-dns-tcp-split-length
Closed

Test DNS TCP split length reads#13561
bneradt wants to merge 1 commit into
apache:masterfrom
bneradt:test-dns-tcp-split-length

Conversation

@bneradt

@bneradt bneradt commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Add a unit test for accumulating the DNS-over-TCP length prefix one byte at a time. Move the prefix state update into DNSConnection::TCPData so the split-read behavior can be exercised without constructing a DNSHandler.

Add a unit test for accumulating the DNS-over-TCP length prefix one byte at a time. Move the prefix state update into DNSConnection::TCPData so the split-read behavior can be exercised without constructing a DNSHandler.
Copilot AI lite review requested due to automatic review settings August 18, 2026 20:27
@bneradt bneradt added this to the 11.0.0 milestone Aug 18, 2026
@bneradt bneradt self-assigned this Aug 18, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@JosiahWI

Copy link
Copy Markdown
Contributor

Do you know whether it's possible to test this through a public interface?

@bneradt

bneradt commented Aug 20, 2026

Copy link
Copy Markdown
Contributor Author

Do you know whether it's possible to test this through a public interface?

I don't think easily. This came out of another code review. I don't like the tail wagging the dog (cluttering the API for the test). I'm going to close this.

@bneradt bneradt closed this Aug 20, 2026
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.

3 participants