change in debug statements.

git-svn-id: file:///svn/unbound/trunk@1625 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2009-05-27 11:27:41 +00:00
parent b86b9f7fdc
commit 7758098250
4 changed files with 6 additions and 4 deletions

View file

@ -5,6 +5,7 @@
of course not really possible because everything is deleted. of course not really possible because everything is deleted.
Most easily triggered on XP (not Vista), maybe because of the Most easily triggered on XP (not Vista), maybe because of the
network stack encouraging large messages backlogs. network stack encouraging large messages backlogs.
- change in debug statements.
26 May 2009: Wouter 26 May 2009: Wouter
- Thanks again to Brett Carr, found an assertion that was not true. - Thanks again to Brett Carr, found an assertion that was not true.

View file

@ -1707,9 +1707,6 @@ processPrimeResponse(struct module_qstate* qstate, int id)
struct iter_qstate* iq = (struct iter_qstate*)qstate->minfo[id]; struct iter_qstate* iq = (struct iter_qstate*)qstate->minfo[id];
enum response_type type = response_type_from_server(0, iq->response, enum response_type type = response_type_from_server(0, iq->response,
&iq->qchase, iq->dp); &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) { if(type == RESPONSE_TYPE_ANSWER) {
qstate->return_rcode = LDNS_RCODE_NOERROR; qstate->return_rcode = LDNS_RCODE_NOERROR;
qstate->return_msg = iq->response; qstate->return_msg = iq->response;

View file

@ -307,6 +307,11 @@ outnet_udp_cb(struct comm_point* c, void* arg, int error,
struct pending key; struct pending key;
struct pending* p; struct pending* p;
verbose(VERB_ALGO, "answer cb"); 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) { if(error != NETEVENT_NOERROR) {
verbose(VERB_QUERY, "outnetudp got udp error %d", error); verbose(VERB_QUERY, "outnetudp got udp error %d", error);

View file

@ -422,7 +422,6 @@ void
worker_win_stop_cb(int ATTR_UNUSED(fd), short ATTR_UNUSED(ev), void* arg) worker_win_stop_cb(int ATTR_UNUSED(fd), short ATTR_UNUSED(ev), void* arg)
{ {
struct worker* worker = (struct worker*)arg; struct worker* worker = (struct worker*)arg;
verbosity = 5; /* @@@ DEBUG */
verbose(VERB_QUERY, "caught stop signal (wsaevent)"); verbose(VERB_QUERY, "caught stop signal (wsaevent)");
worker->need_to_exit = 1; worker->need_to_exit = 1;
comm_base_exit(worker->base); comm_base_exit(worker->base);