summaryrefslogtreecommitdiffstats
path: root/src/gui/doc/snippets/textdocument-css/main.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2023-05-12 09:42:00 -0700
committerThiago Macieira <thiago.macieira@intel.com>2023-05-26 06:46:31 -0700
commitdf07d982437c989997508e9e5e85ae1d5bf69b12 (patch)
tree494663d805ac295ff3e1edc17d96eb15e7a2c16f /src/gui/doc/snippets/textdocument-css/main.cpp
parentb673fa09c39e3dc86cbfb49efc5d2bbf8149af72 (diff)
QDnsLookup/Unix large replies: use EDNS0 [2/3]
The current code is inefficient when dealing with replies exceeding the PACKETSZ default size. This commit adds an EDNS0 footer to the DNS query informing the DNS server how big our buffer is. We choose a larger buffer than the old PACKETSZ so more will fit before a Virtual Circuit (TCP socket) is required. The choice is based on IPv6 requirements for the minimum MTU. Any network incapable of transmitting frames with that big a payload must support fragmenting and reassembly at the Layer 2 level, below IP. Ethernet MTU is usually 1500, so we leave a bit on the table, but this avoids having to discover our Path MTU to the DNS server. This is incomplete: DNS queries above the 1232-byte limit still perform the same query four times. Change-Id: I3e3bfef633af4130a03afffd175e72f7fbc9265d Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/gui/doc/snippets/textdocument-css/main.cpp')
0 files changed, 0 insertions, 0 deletions