mirror of
https://github.com/tailscale/tailscale.git
synced 2025-02-21 12:28:39 +00:00
net/dns: bump DNS-over-TCP size limit to 4k
We saw a few cases where we hit this limit; bumping to 4k seems relatively uncontroversial. Change-Id: I218fee3bc0d2fa5fde16eddc36497a73ebd7cbda Signed-off-by: Andrew Dunham <andrew@du.nham.ca>
This commit is contained in:
parent
98daf99775
commit
0372e14d79
@ -427,8 +427,8 @@ const (
|
|||||||
// The RFCs don't specify the max size of a TCP-based DNS query,
|
// The RFCs don't specify the max size of a TCP-based DNS query,
|
||||||
// but we want to keep this reasonable. Given payloads are typically
|
// but we want to keep this reasonable. Given payloads are typically
|
||||||
// much larger and all known client send a single query, I've arbitrarily
|
// much larger and all known client send a single query, I've arbitrarily
|
||||||
// chosen 2k.
|
// chosen 4k.
|
||||||
maxReqSizeTCP = 2048
|
maxReqSizeTCP = 4096
|
||||||
)
|
)
|
||||||
|
|
||||||
// dnsTCPSession services DNS requests sent over TCP.
|
// dnsTCPSession services DNS requests sent over TCP.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user