sing-box/dns
Gavin Luo fffe9fc566
Fix reset buffer in dhcp response loop
Previously, the buffer was not reset within the response loop. If a packet
handle failed or completed, the buffer retained its state. Specifically,
if `ReadPacketFrom` returned `io.ErrShortBuffer`, the error was ignored
via `continue`, but the buffer remained full. This caused the next
read attempt to immediately fail with the same error, creating a tight
busy-wait loop that consumed 100% CPU.

Validates `buffer.Reset()` is called at the start of each iteration to
ensure a clean state for 'ReadPacketFrom'.
2026-01-05 17:46:59 +08:00
..
transport Fix reset buffer in dhcp response loop 2026-01-05 17:46:59 +08:00
client.go Fix DNS cache not working when domain strategy is set 2025-12-21 16:59:10 +08:00
client_log.go refactor: DNS 2025-07-08 13:12:14 +08:00
client_truncate.go Fix dns truncate 2025-10-05 17:58:21 +08:00
extension_edns0_subnet.go Fix set edns0 client subnet 2025-07-08 13:14:38 +08:00
rcode.go Fix DNS exchange 2025-09-12 18:05:02 +08:00
router.go Fix DNS cache not working when domain strategy is set 2025-12-21 16:59:10 +08:00
transport_adapter.go refactor: Outbound domain resolver 2025-07-08 13:12:14 +08:00
transport_dialer.go Fix DNS packet size 2025-09-08 09:12:30 +08:00
transport_manager.go Fail when default DNS server not found 2025-07-08 13:12:28 +08:00
transport_registry.go refactor: DNS 2025-07-08 13:12:14 +08:00