]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
Deleted code that has already been commented out.
authorKarel Slany <karel.slany@nic.cz>
Tue, 9 Aug 2016 10:28:24 +0000 (12:28 +0200)
committerOndřej Surý <ondrej@sury.org>
Thu, 11 Aug 2016 12:06:45 +0000 (14:06 +0200)
modules/cookies/cookiemonster.c

index ca7e5d75705088f3d40eacd6abcce4958f5a3a52..6053846294c45da75e1fef84fcd7d352f2d30973 100644 (file)
@@ -277,16 +277,11 @@ int check_response(knot_layer_t *ctx, knot_pkt_t *pkt)
                         * Either the planning of the second request failed or
                         * BADCOOKIE received for the second time.
                         *
-                        * A TCP fall-back would be desirable. But, TCP is not
-                        * currently reliably supported in the resolver.
-                        * Therefore, the resolution just fails.
+                        * RFC7873 5.3 says that TCP should be used. Currently
+                        * we always expect that the server doesn't support TCP.
                         */
                        qry->flags &= ~QUERY_BADCOOKIE_AGAIN;
                        return KNOT_STATE_FAIL;
-                       /*
-                       DEBUG_MSG(NULL, "%s\n", "falling back to TCP");
-                       qry->flags |= QUERY_TCP;
-                        */
                }
 
                return KNOT_STATE_CONSUME;