• Miek Gieben's avatar
    Scrub: use binary search (#1543) · 074d176f
    Miek Gieben authored
    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.
    074d176f
request_test.go 2.85 KB