]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Improve the "hint" variable comment
authorMichał Kępień <michal@isc.org>
Mon, 25 May 2020 12:34:56 +0000 (14:34 +0200)
committerMichał Kępień <michal@isc.org>
Mon, 25 May 2020 12:34:56 +0000 (14:34 +0200)
Replace an existing comment with a more verbose explanation of when the
"hint" variable is set in resquery_send() and how its value affects the
advertised UDP buffer size in outgoing queries.

lib/dns/resolver.c

index 99278a177ffbae52079d974f94d70c1063dcbbbf..e97bc41b5dc20442cba519e5b7a89119c61991c9 100644 (file)
@@ -2643,7 +2643,12 @@ resquery_send(resquery_t *query) {
                        }
 
                        /*
-                        * We have talked to this server before.
+                        * This server timed out for the first time in this
+                        * fetch context and we received a response from it
+                        * before (either in this fetch context or in a
+                        * different one).  Set 'udpsize' to the size of the
+                        * largest UDP response we have received from this
+                        * server so far.
                         */
                        if (hint != 0U) {
                                udpsize = hint;