From: Wouter Wijngaards Date: Wed, 27 May 2009 11:27:41 +0000 (+0000) Subject: change in debug statements. X-Git-Tag: release-1.3.0~2^2~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=77580982502f61e7a8649f428a338bd687b55d76;p=thirdparty%2Funbound.git change in debug statements. git-svn-id: file:///svn/unbound/trunk@1625 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/doc/Changelog b/doc/Changelog index a8d1de135..fe1e5a3a0 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -5,6 +5,7 @@ of course not really possible because everything is deleted. Most easily triggered on XP (not Vista), maybe because of the network stack encouraging large messages backlogs. + - change in debug statements. 26 May 2009: Wouter - Thanks again to Brett Carr, found an assertion that was not true. diff --git a/iterator/iterator.c b/iterator/iterator.c index d69d22f7b..2f6daafef 100644 --- a/iterator/iterator.c +++ b/iterator/iterator.c @@ -1707,9 +1707,6 @@ processPrimeResponse(struct module_qstate* qstate, int id) struct iter_qstate* iq = (struct iter_qstate*)qstate->minfo[id]; enum response_type type = response_type_from_server(0, iq->response, &iq->qchase, iq->dp); - /* @@@ DEBUG - fail to prime roots often */ - /* if((ub_random(qstate->env->rnd) & 0x7) != 0) - type = RESPONSE_TYPE_ANSWER+1; */ if(type == RESPONSE_TYPE_ANSWER) { qstate->return_rcode = LDNS_RCODE_NOERROR; qstate->return_msg = iq->response; diff --git a/services/outside_network.c b/services/outside_network.c index d8033035c..3869aa2f7 100644 --- a/services/outside_network.c +++ b/services/outside_network.c @@ -307,6 +307,11 @@ outnet_udp_cb(struct comm_point* c, void* arg, int error, struct pending key; struct pending* p; verbose(VERB_ALGO, "answer cb"); + /* @@@ DEBUG simulate bad connection: drop those packets */ + /* + if((ub_random(outnet->rnd)&0xf) <= 1) + return 0; + */ if(error != NETEVENT_NOERROR) { verbose(VERB_QUERY, "outnetudp got udp error %d", error); diff --git a/winrc/win_svc.c b/winrc/win_svc.c index 097695cf7..4b7e02aed 100644 --- a/winrc/win_svc.c +++ b/winrc/win_svc.c @@ -422,7 +422,6 @@ void worker_win_stop_cb(int ATTR_UNUSED(fd), short ATTR_UNUSED(ev), void* arg) { struct worker* worker = (struct worker*)arg; - verbosity = 5; /* @@@ DEBUG */ verbose(VERB_QUERY, "caught stop signal (wsaevent)"); worker->need_to_exit = 1; comm_base_exit(worker->base);