Skip to content
Snippets Groups Projects
Commit 91c22079 authored by Karel Slaný's avatar Karel Slaný Committed by Ondřej Surý
Browse files

Deleted code that has already been commented out.

parent 4063de10
No related merge requests found
...@@ -277,16 +277,11 @@ int check_response(knot_layer_t *ctx, knot_pkt_t *pkt) ...@@ -277,16 +277,11 @@ int check_response(knot_layer_t *ctx, knot_pkt_t *pkt)
* Either the planning of the second request failed or * Either the planning of the second request failed or
* BADCOOKIE received for the second time. * BADCOOKIE received for the second time.
* *
* A TCP fall-back would be desirable. But, TCP is not * RFC7873 5.3 says that TCP should be used. Currently
* currently reliably supported in the resolver. * we always expect that the server doesn't support TCP.
* Therefore, the resolution just fails.
*/ */
qry->flags &= ~QUERY_BADCOOKIE_AGAIN; qry->flags &= ~QUERY_BADCOOKIE_AGAIN;
return KNOT_STATE_FAIL; return KNOT_STATE_FAIL;
/*
DEBUG_MSG(NULL, "%s\n", "falling back to TCP");
qry->flags |= QUERY_TCP;
*/
} }
return KNOT_STATE_CONSUME; return KNOT_STATE_CONSUME;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment