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:32 -0700
commit5ecdce0c352d924962f8cd79f2c0bea7f078ddf1 (patch)
tree89bfb7462a58c5c0f8a01627cb5d39f68b2bb16d /src/gui/doc/snippets/textdocument-css/main.cpp
parentdf07d982437c989997508e9e5e85ae1d5bf69b12 (diff)
QDnsLookup/Unix large replies: manually handle VC [3/3]
The current code was inefficient when replies exceeded the initial buffer size because the res_nsend() function switched to VC to get the full reply, but that wouldn't fit our buffer before we enlarged it. This commit tells res_nsend() to only use UDP or only use TCP, avoiding the two unnecessary transactions in the lookup. Since we don't get that second TCP reply now that would tell us the size of the reply, we must allocate the largest possible buffer for a DNS reply. Change-Id: I3e3bfef633af4130a03afffd175e73d2e9fa9bf1 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