## page was renamed from kresd/1.3.0/tcp/patch == kresd 1.3.0 patch == {{{ $ diff -c resolve.c* *** resolve.c 2017-06-22 13:45:53.487925537 +0900 --- resolve.c.orig 2017-06-21 08:35:32.721655314 +0900 *************** *** 184,195 **** } for (int i = 0; i < labels; ++i) { int ret = kr_cache_peek(cache, KR_CACHE_PKT, target, KNOT_RRTYPE_NS, &entry, ×tamp); - WITH_VERBOSE { - char qname_str[KNOT_DNAME_MAXLEN]; - knot_dname_to_str(qname_str, target, sizeof(qname_str)); - VERBOSE_MSG(qry, "kr peekpkt %s ret %d\n", qname_str, ret); - } - if (ret == 0) { /* Either NXDOMAIN or NODATA, start here. */ /* @todo We could stop resolution here for NXDOMAIN, but we can't because of broken CDNs */ qry->flags |= QUERY_NO_MINIMIZE; --- 184,189 ---- *************** *** 1424,1430 **** gettimeofday(&qry->timestamp, NULL); *dst = &qry->ns.addr[0].ip; ! *type = (qry->flags & (QUERY_TCP |QUERY_NO_MINIMIZE)) ? SOCK_STREAM : SOCK_DGRAM; return request->state; } --- 1418,1424 ---- gettimeofday(&qry->timestamp, NULL); *dst = &qry->ns.addr[0].ip; ! *type = (qry->flags & QUERY_TCP) ? SOCK_STREAM : SOCK_DGRAM; return request->state; } *************** *** 1511,1517 **** } inet_ntop(addr->sa_family, kr_nsrep_inaddr(qry->ns.addr[i]), ns_str, sizeof(ns_str)); VERBOSE_MSG(qry, "=> querying: '%s' score: %u zone cut: '%s' m12n: '%s' type: '%s' proto: '%s'\n", ! ns_str, qry->ns.score, zonecut_str, qname_str, type_str, (qry->flags & (QUERY_TCP|QUERY_NO_MINIMIZE)) ? "tcp" : "udp"); break; }} --- 1505,1511 ---- } inet_ntop(addr->sa_family, kr_nsrep_inaddr(qry->ns.addr[i]), ns_str, sizeof(ns_str)); VERBOSE_MSG(qry, "=> querying: '%s' score: %u zone cut: '%s' m12n: '%s' type: '%s' proto: '%s'\n", ! ns_str, qry->ns.score, zonecut_str, qname_str, type_str, (qry->flags & QUERY_TCP) ? "tcp" : "udp"); break; }} }}}