mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
change in debug statements.
git-svn-id: file:///svn/unbound/trunk@1625 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
b86b9f7fdc
commit
7758098250
4 changed files with 6 additions and 4 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue