Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion json-dns/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
)

// The largest well-formed 64 KiB DNS response can be serialized into ~18 MiB of JSON, if not pretty-printed.
// (4079 MINFO records, each with NAME = RMAILBX = EMAILBX = ("<"*63 + ".") * 3 + "<"*61 + ".")
// (4079 MINFO records, each with NAME = RMAILBX = EMAILBX = ("\uXXXX"*63 + ".") * 3 + "\uXXXX"*61 + ".")
// That is too large as a practical size limit. Also, there is actually no upper limit if pretty-printed.
// So, I'll set the limit to 1 MiB as for now. We can increase it if we do need more.
const ReasonableJSONResponseLengthLimit = 1048576
Expand Down
Loading