sing-box/dns/transport
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
..
dhcp Fix reset buffer in dhcp response loop 2026-01-05 17:46:59 +08:00
fakeip refactor: DNS 2025-07-08 13:12:14 +08:00
hosts Explicitly reject detour to empty direct outbounds 2025-07-08 13:12:28 +08:00
local Fix trailing dot handling in local DNS transport 2025-10-16 21:43:12 +08:00
quic Report invalid DNS address early 2025-07-08 13:12:34 +08:00
https.go Improve HTTPS DNS transport 2025-10-09 23:45:23 +08:00
https_transport.go Improve HTTPS DNS transport 2025-10-09 23:45:23 +08:00
tcp.go Report invalid DNS address early 2025-07-08 13:12:34 +08:00
tls.go Add resolved service and DNS server 2025-07-08 13:14:41 +08:00
udp.go Fix UDP DNS buffer size 2025-07-18 12:20:33 +08:00