mirror of
https://github.com/coredns/coredns.git
synced 2025-11-02 02:03:13 -05:00
Use binary search to find the minimal message size, that contains whole RRs and fits the client's buffer. This is better then just setting entire sections to `nil`. Extend the tests to test for additional and answer section truncation. In the first case we *don't* set the TC bit. This function now also set Compression to true.
2.8 KiB
2.8 KiB